use of aQute.bnd.build.ProjectTester in project bnd by bndtools.
the class LauncherTest method testJUnitLessTester.
/**
* Try out the new tester that does not contain JUnit
*/
public static void testJUnitLessTester() throws Exception {
Project project = getProject();
List<Container> bundles = project.getBundles(Strategy.HIGHEST, "biz.aQute.tester", "TESTER");
assertNotNull(bundles);
assertEquals(1, bundles.size());
project.setProperty(Constants.TESTPATH, "");
project.setProperty(Constants.TESTER, "biz.aQute.tester");
project.clear();
project.build();
assertTrue(project.check());
ProjectTester pt = project.getProjectTester();
pt.addTest("test.TestCase1");
pt.addTest("test.TestCase2:m1");
assertEquals(2, pt.test());
}
Aggregations