diff --git a/spring-5/src/test/java/com/baeldung/Example1ManualTest.java b/spring-5/src/test/java/com/baeldung/Example1ManualTest.java deleted file mode 100644 index c3330b4213..0000000000 --- a/spring-5/src/test/java/com/baeldung/Example1ManualTest.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.baeldung; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -@RunWith(SpringRunner.class) -@SpringBootTest -public class Example1ManualTest { - - @Test - public void test1a() { - block(3000); - } - - @Test - public void test1b() { - block(3000); - } - - public static void block(long ms) { - try { - Thread.sleep(ms); - } catch (InterruptedException e) { - System.out.println("Thread interrupted"); - } - } -} diff --git a/spring-5/src/test/java/com/baeldung/Example2ManualTest.java b/spring-5/src/test/java/com/baeldung/Example2ManualTest.java deleted file mode 100644 index 9c47b17fdb..0000000000 --- a/spring-5/src/test/java/com/baeldung/Example2ManualTest.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.baeldung; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; - -@RunWith(SpringRunner.class) -@SpringBootTest -public class Example2ManualTest { - - @Test - public void test1a() { - block(3000); - } - - @Test - public void test1b() { - block(3000); - } - - public static void block(long ms) { - try { - Thread.sleep(ms); - } catch (InterruptedException e) { - System.out.println("Thread Interrupted"); - } - } -} diff --git a/spring-5/src/test/java/com/baeldung/ParallelManualTest.java b/spring-5/src/test/java/com/baeldung/ParallelManualTest.java deleted file mode 100644 index 5c3a111c62..0000000000 --- a/spring-5/src/test/java/com/baeldung/ParallelManualTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.baeldung; - -import org.junit.Test; -import org.junit.experimental.ParallelComputer; -import org.junit.runner.Computer; -import org.junit.runner.JUnitCore; - -public class ParallelManualTest { - - @Test - public void runTests() { - final Class[] classes = { Example1ManualTest.class, Example2ManualTest.class }; - - JUnitCore.runClasses(new Computer(), classes); - } - - @Test - public void runTestsInParallel() { - final Class[] classes = { Example1ManualTest.class, Example2ManualTest.class }; - - JUnitCore.runClasses(new ParallelComputer(true, true), classes); - } - -} \ No newline at end of file diff --git a/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5ParallelManualTest.java b/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5ParallelManualTest.java deleted file mode 100644 index b9ed87ed73..0000000000 --- a/spring-5/src/test/java/com/baeldung/jupiter/Spring5JUnit5ParallelManualTest.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.baeldung.jupiter; - -import com.baeldung.Example1ManualTest; -import com.baeldung.Example2ManualTest; -import org.junit.experimental.ParallelComputer; -import org.junit.jupiter.api.Test; -import org.junit.runner.Computer; -import org.junit.runner.JUnitCore; - -class Spring5JUnit5ParallelManualTest { - - @Test - void givenTwoTestClasses_whenJUnitRunParallel_thenTheTestsExecutingParallel() { - final Class[] classes = { Example1ManualTest.class, Example2ManualTest.class }; - - JUnitCore.runClasses(new ParallelComputer(true, true), classes); - } - - @Test - void givenTwoTestClasses_whenJUnitRunParallel_thenTheTestsExecutingLinear() { - final Class[] classes = { Example1ManualTest.class, Example2ManualTest.class }; - - JUnitCore.runClasses(new Computer(), classes); - } -} \ No newline at end of file