use of com.oracle.bedrock.runtime.java.ClassPath in project oracle-bedrock by coherence-community.
the class TestClassesClassPathClassesTest method shouldLoadJUnit3TestClassFromJar.
@Test
public void shouldLoadJUnit3TestClassFromJar() throws Exception {
File jar = createJar(JUnit3Test.class);
ClassPath classPath = ClassPath.ofFile(jar);
TestClasses.ClassPathClasses testClasses = new TestClasses.ClassPathClasses(classPath);
Set<Class<?>> classes = testClasses.resolveTestClasses();
assertThat(classes, is(notNullValue()));
assertThat(classes, containsInAnyOrder(JUnit3Test.class));
}
use of com.oracle.bedrock.runtime.java.ClassPath in project oracle-bedrock by coherence-community.
the class TestClassesClassPathClassesTest method shouldLoadJUnit3TestClass.
@Test
public void shouldLoadJUnit3TestClass() throws Exception {
File folder = createClassesFolder(JUnit3Test.class);
ClassPath classPath = ClassPath.ofFile(folder);
TestClasses.ClassPathClasses testClasses = new TestClasses.ClassPathClasses(classPath);
Set<Class<?>> classes = testClasses.resolveTestClasses();
assertThat(classes, is(notNullValue()));
assertThat(classes, containsInAnyOrder(JUnit3Test.class));
}
use of com.oracle.bedrock.runtime.java.ClassPath in project oracle-bedrock by coherence-community.
the class TestClassesClassPathClassesTest method shouldLoadJUnit3SuiteClassFromJar.
@Test
public void shouldLoadJUnit3SuiteClassFromJar() throws Exception {
File jar = createJar(JUnit3Suite.class);
ClassPath classPath = ClassPath.ofFile(jar);
TestClasses.ClassPathClasses testClasses = new TestClasses.ClassPathClasses(classPath);
Set<Class<?>> classes = testClasses.resolveTestClasses();
assertThat(classes, is(notNullValue()));
assertThat(classes, containsInAnyOrder(JUnit3Suite.class));
}
use of com.oracle.bedrock.runtime.java.ClassPath in project oracle-bedrock by coherence-community.
the class TestClassesClassPathClassesTest method shouldLoadJUnit4TestClassFromJar.
@Test
public void shouldLoadJUnit4TestClassFromJar() throws Exception {
File jar = createJar(JUnit4Test.class);
ClassPath classPath = ClassPath.ofFile(jar);
TestClasses.ClassPathClasses testClasses = new TestClasses.ClassPathClasses(classPath);
Set<Class<?>> classes = testClasses.resolveTestClasses();
assertThat(classes, is(notNullValue()));
assertThat(classes, containsInAnyOrder(JUnit4Test.class));
}
Aggregations