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)
|
@RunWith(SpringRunner.class)
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
public class Example1IntegrationTest {
|
public class Example1ManualTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test1a() {
|
public void test1a() {
|
@ -7,7 +7,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||||||
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
public class Example2IntegrationTest {
|
public class Example2ManualTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test1a() {
|
public void test1a() {
|
@ -5,18 +5,18 @@ import org.junit.experimental.ParallelComputer;
|
|||||||
import org.junit.runner.Computer;
|
import org.junit.runner.Computer;
|
||||||
import org.junit.runner.JUnitCore;
|
import org.junit.runner.JUnitCore;
|
||||||
|
|
||||||
public class ParallelIntegrationTest {
|
public class ParallelManualTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void runTests() {
|
public void runTests() {
|
||||||
final Class<?>[] classes = { Example1IntegrationTest.class, Example2IntegrationTest.class };
|
final Class<?>[] classes = { Example1ManualTest.class, Example2ManualTest.class };
|
||||||
|
|
||||||
JUnitCore.runClasses(new Computer(), classes);
|
JUnitCore.runClasses(new Computer(), classes);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void runTestsInParallel() {
|
public void runTestsInParallel() {
|
||||||
final Class<?>[] classes = { Example1IntegrationTest.class, Example2IntegrationTest.class };
|
final Class<?>[] classes = { Example1ManualTest.class, Example2ManualTest.class };
|
||||||
|
|
||||||
JUnitCore.runClasses(new ParallelComputer(true, true), classes);
|
JUnitCore.runClasses(new ParallelComputer(true, true), classes);
|
||||||
}
|
}
|
@ -1,24 +1,24 @@
|
|||||||
package com.baeldung.jupiter;
|
package com.baeldung.jupiter;
|
||||||
|
|
||||||
import com.baeldung.Example1IntegrationTest;
|
import com.baeldung.Example1ManualTest;
|
||||||
import com.baeldung.Example2IntegrationTest;
|
import com.baeldung.Example2ManualTest;
|
||||||
import org.junit.experimental.ParallelComputer;
|
import org.junit.experimental.ParallelComputer;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.runner.Computer;
|
import org.junit.runner.Computer;
|
||||||
import org.junit.runner.JUnitCore;
|
import org.junit.runner.JUnitCore;
|
||||||
|
|
||||||
class Spring5JUnit5ParallelIntegrationTest {
|
class Spring5JUnit5ParallelManualTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenTwoTestClasses_whenJUnitRunParallel_thenTheTestsExecutingParallel() {
|
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);
|
JUnitCore.runClasses(new ParallelComputer(true, true), classes);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenTwoTestClasses_whenJUnitRunParallel_thenTheTestsExecutingLinear() {
|
void givenTwoTestClasses_whenJUnitRunParallel_thenTheTestsExecutingLinear() {
|
||||||
final Class<?>[] classes = { Example1IntegrationTest.class, Example2IntegrationTest.class };
|
final Class<?>[] classes = { Example1ManualTest.class, Example2ManualTest.class };
|
||||||
|
|
||||||
JUnitCore.runClasses(new Computer(), classes);
|
JUnitCore.runClasses(new Computer(), classes);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user