Java Code Examples for org.junit.experimental.ParallelComputer

The following are top voted examples for showing how to use org.junit.experimental.ParallelComputer. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: sosiefier   File: ParallelMethodTest.java   View source code 5 votes vote down vote up
@Test
public void testsRunInParallel() {
    Result result = JUnitCore.runClasses(ParallelComputer.methods(), Example.class);
    assertTrue(result.wasSuccessful());
    assertNotNull(fOne);
    assertNotNull(fTwo);
    assertThat(fOne, is(not(fTwo)));
}
 
Example 2
Project: sosiefier   File: ParallelClassTest.java   View source code 5 votes vote down vote up
@Test
public void testsRunInParallel() {
    Result result = JUnitCore.runClasses(ParallelComputer.classes(), Example1.class, Example2.class);
    assertTrue(result.wasSuccessful());
    assertNotNull(fExample1One);
    assertNotNull(fExample1Two);
    assertNotNull(fExample2One);
    assertNotNull(fExample2Two);
    assertThat(fExample1One, is(fExample1Two));
    assertThat(fExample2One, is(fExample2Two));
    assertThat(fExample1One, is(not(fExample2One)));
}
 
Example 3
Project: junit   File: ParallelMethodTest.java   View source code 5 votes vote down vote up
@Test
public void testsRunInParallel() {
    Result result = JUnitCore.runClasses(ParallelComputer.methods(), Example.class);
    assertTrue(result.wasSuccessful());
    assertNotNull(fOne);
    assertNotNull(fTwo);
    assertThat(fOne, is(not(fTwo)));
}
 
Example 4
Project: junit   File: ParallelClassTest.java   View source code 5 votes vote down vote up
@Test
public void testsRunInParallel() {
    Result result = JUnitCore.runClasses(ParallelComputer.classes(), Example1.class, Example2.class);
    assertTrue(result.wasSuccessful());
    assertNotNull(fExample1One);
    assertNotNull(fExample1Two);
    assertNotNull(fExample2One);
    assertNotNull(fExample2Two);
    assertThat(fExample1One, is(fExample1Two));
    assertThat(fExample2One, is(fExample2Two));
    assertThat(fExample1One, is(not(fExample2One)));
}
 
Example 5
Project: health-and-care-developer-network   File: ParallelMethodTest.java   View source code 5 votes vote down vote up
@Test
public void testsRunInParallel() {
    Result result = JUnitCore.runClasses(ParallelComputer.methods(), Example.class);
    assertTrue(result.wasSuccessful());
    assertNotNull(fOne);
    assertNotNull(fTwo);
    assertThat(fOne, is(not(fTwo)));
}
 
Example 6
Project: health-and-care-developer-network   File: ParallelClassTest.java   View source code 5 votes vote down vote up
@Test
public void testsRunInParallel() {
    Result result = JUnitCore.runClasses(ParallelComputer.classes(), Example1.class, Example2.class);
    assertTrue(result.wasSuccessful());
    assertNotNull(fExample1One);
    assertNotNull(fExample1Two);
    assertNotNull(fExample2One);
    assertNotNull(fExample2Two);
    assertThat(fExample1One, is(fExample1Two));
    assertThat(fExample2One, is(fExample2Two));
    assertThat(fExample1One, is(not(fExample2One)));
}