Java Code Examples for org.junit.jupiter.api.RepeatedTest#LONG_DISPLAY_NAME
The following examples show how to use
org.junit.jupiter.api.RepeatedTest#LONG_DISPLAY_NAME .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TunningDisplayInRepeatedTest.java From mastering-junit5 with Apache License 2.0 | 4 votes |
@RepeatedTest(value = 2, name = RepeatedTest.LONG_DISPLAY_NAME) @DisplayName("Test using long display name") void customDisplayNameWithLongPattern(TestInfo testInfo) { System.out.println(testInfo.getDisplayName()); }
Example 2
Source File: TunningDisplayInRepeatedTest.java From Mastering-Software-Testing-with-JUnit-5 with MIT License | 4 votes |
@RepeatedTest(value = 2, name = RepeatedTest.LONG_DISPLAY_NAME) @DisplayName("Test using long display name") void customDisplayNameWithLongPattern(TestInfo testInfo) { System.out.println(testInfo.getDisplayName()); }
Example 3
Source File: RepeatedTests.java From sbt-jupiter-interface with Apache License 2.0 | 4 votes |
@RepeatedTest(value = 1, name = RepeatedTest.LONG_DISPLAY_NAME) @DisplayName("Details...") void customDisplayNameWithLongPattern(TestInfo testInfo) { assertEquals(testInfo.getDisplayName(), "Details... :: repetition 1 of 1"); }
Example 4
Source File: RepeatedTests.java From sbt-jupiter-interface with Apache License 2.0 | 4 votes |
@RepeatedTest(value = 1, name = RepeatedTest.LONG_DISPLAY_NAME) @DisplayName("Details...") void customDisplayNameWithLongPattern(TestInfo testInfo) { assertEquals(testInfo.getDisplayName(), "Details... :: repetition 1 of 1"); }
Example 5
Source File: RepeatedTestAnnotationUnitTest.java From tutorials with MIT License | 4 votes |
@RepeatedTest(value = 3, name = RepeatedTest.LONG_DISPLAY_NAME) void repeatedTestWithLongName() { System.out.println("Executing repeated test with long name"); assertEquals(2, Math.addExact(1, 1), "1 + 1 should equal 2"); }