Last active
April 4, 2021 09:03
-
-
Save mehmetcemyucel/2b822beab375677d342b0b9410f0c1ff to your computer and use it in GitHub Desktop.
springboot-junit-rule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestNameTest { | |
@Rule | |
public final TestName name = new TestName(); | |
@Test | |
public void testA() { | |
assertEquals("testA", name.getMethodName()); | |
} | |
@Test | |
public void testB() { | |
assertEquals("testB", name.getMethodName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment