Skip to content

Commit

Permalink
JAVA-11489 Renamed time taking and unused integration tests to *Manua…
Browse files Browse the repository at this point in the history
…lTests
  • Loading branch information
dkapil committed May 17, 2022
1 parent 65a28f6 commit 6b3d0cb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@RunWith(SpringRunner.class)
@SpringBootTest
public class Example1IntegrationTest {
public class Example1ManualTest {

@Test
public void test1a() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@RunWith(SpringRunner.class)
@SpringBootTest
public class Example2IntegrationTest {
public class Example2ManualTest {

@Test
public void test1a() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
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);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
}
Expand Down

0 comments on commit 6b3d0cb

Please sign in to comment.