This commit is contained in:
Eugen Paraschiv 2018-07-20 13:33:13 +03:00
commit 9ab58be3a9
5 changed files with 8 additions and 8 deletions

View File

@ -1,2 +0,0 @@
## Relevant articles:
- [The Order of Tests in JUnit](http://www.baeldung.com/junit-5-test-order)

View File

@ -13,3 +13,5 @@
- [@Before vs @BeforeClass vs @BeforeEach vs @BeforeAll](http://www.baeldung.com/junit-before-beforeclass-beforeeach-beforeall)
- [Migrating from JUnit 4 to JUnit 5](http://www.baeldung.com/junit-5-migration)
- [JUnit5 Programmatic Extension Registration with @RegisterExtension](http://www.baeldung.com/junit-5-registerextension-annotation)
- [The Order of Tests in JUnit](http://www.baeldung.com/junit-5-test-order)

View File

@ -1,4 +1,4 @@
package com.baeldung.junit5;
package com.baeldung.methodorders;
import static org.junit.Assert.assertEquals;
@ -8,7 +8,7 @@ import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.DEFAULT)
public class DefaultOrderOfExecutionTest {
public class DefaultOrderOfExecutionUnitTest {
private static StringBuilder output = new StringBuilder("");
@Test

View File

@ -1,11 +1,11 @@
package com.baeldung.junit5;
package com.baeldung.methodorders;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.JVM)
public class JVMOrderOfExecutionTest {
public class JVMOrderOfExecutionUnitTest {
private static StringBuilder output = new StringBuilder("");

View File

@ -1,4 +1,4 @@
package com.baeldung.junit5;
package com.baeldung.methodorders;
import static org.junit.Assert.assertEquals;
@ -8,7 +8,7 @@ import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class NameAscendingOrderOfExecutionTest {
public class NameAscendingOrderOfExecutionUnitTest {
private static StringBuilder output = new StringBuilder("");
@Test