Swap these 2 arguments, so they are in the correct order: expected value, actual value
This commit is contained in:
parent
e0bdd5a62d
commit
8861efd87a
|
@ -29,6 +29,6 @@ public class AlphanumericOrderUnitTest {
|
|||
|
||||
@AfterAll
|
||||
public static void assertOutput() {
|
||||
assertEquals(output.toString(), "ABa");
|
||||
assertEquals("ABa", output.toString());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
|||
@TestMethodOrder(CustomOrder.class)
|
||||
public class CustomOrderUnitTest {
|
||||
|
||||
private static StringBuilder output = new StringBuilder("");
|
||||
private static final StringBuilder output = new StringBuilder("");
|
||||
|
||||
@Test
|
||||
void myATest() {
|
||||
|
@ -26,9 +26,8 @@ public class CustomOrderUnitTest {
|
|||
output.append("a");
|
||||
}
|
||||
|
||||
|
||||
@AfterAll
|
||||
public static void assertOutput() {
|
||||
assertEquals(output.toString(), "AaB");
|
||||
assertEquals("AaB", output.toString());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,8 @@ import static org.junit.jupiter.api.Assertions.*;
|
|||
|
||||
@TestMethodOrder(OrderAnnotation.class)
|
||||
public class OrderAnnotationUnitTest {
|
||||
private static StringBuilder output = new StringBuilder("");
|
||||
|
||||
private static final StringBuilder output = new StringBuilder();
|
||||
|
||||
@Test
|
||||
@Order(1)
|
||||
|
@ -29,6 +30,6 @@ public class OrderAnnotationUnitTest {
|
|||
|
||||
@AfterAll
|
||||
public static void assertOutput() {
|
||||
assertEquals(output.toString(), "abc");
|
||||
assertEquals("abc", output.toString());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue