JAVA-11489 Renamed time taking and unused integration tests to *ManualTests
This commit is contained in:
parent
851c7d933e
commit
633b5849bb
|
@ -7,7 +7,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class Example1IntegrationTest {
|
||||
public class Example1ManualTest {
|
||||
|
||||
@Test
|
||||
public void test1a() {
|
|
@ -7,7 +7,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class Example2IntegrationTest {
|
||||
public class Example2ManualTest {
|
||||
|
||||
@Test
|
||||
public void test1a() {
|
|
@ -5,18 +5,18 @@ import org.junit.experimental.ParallelComputer;
|
|||
import org.junit.runner.Computer;
|
||||
import org.junit.runner.JUnitCore;
|
||||
|
||||
public class ParallelIntegrationTest {
|
||||
public class ParallelManualTest {
|
||||
|
||||
@Test
|
||||
public void runTests() {
|
||||
final Class<?>[] classes = { Example1IntegrationTest.class, Example2IntegrationTest.class };
|
||||
final Class<?>[] classes = { Example1ManualTest.class, Example2ManualTest.class };
|
||||
|
||||
JUnitCore.runClasses(new Computer(), classes);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void runTestsInParallel() {
|
||||
final Class<?>[] classes = { Example1IntegrationTest.class, Example2IntegrationTest.class };
|
||||
final Class<?>[] classes = { Example1ManualTest.class, Example2ManualTest.class };
|
||||
|
||||
JUnitCore.runClasses(new ParallelComputer(true, true), classes);
|
||||
}
|
|
@ -1,24 +1,24 @@
|
|||
package com.baeldung.jupiter;
|
||||
|
||||
import com.baeldung.Example1IntegrationTest;
|
||||
import com.baeldung.Example2IntegrationTest;
|
||||
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 Spring5JUnit5ParallelIntegrationTest {
|
||||
class Spring5JUnit5ParallelManualTest {
|
||||
|
||||
@Test
|
||||
void givenTwoTestClasses_whenJUnitRunParallel_thenTheTestsExecutingParallel() {
|
||||
final Class<?>[] classes = { Example1IntegrationTest.class, Example2IntegrationTest.class };
|
||||
final Class<?>[] classes = { Example1ManualTest.class, Example2ManualTest.class };
|
||||
|
||||
JUnitCore.runClasses(new ParallelComputer(true, true), classes);
|
||||
}
|
||||
|
||||
@Test
|
||||
void givenTwoTestClasses_whenJUnitRunParallel_thenTheTestsExecutingLinear() {
|
||||
final Class<?>[] classes = { Example1IntegrationTest.class, Example2IntegrationTest.class };
|
||||
final Class<?>[] classes = { Example1ManualTest.class, Example2ManualTest.class };
|
||||
|
||||
JUnitCore.runClasses(new Computer(), classes);
|
||||
}
|
Loading…
Reference in New Issue