use of junit.framework.JUnit4TestAdapter in project JMRI by JMRI.
the class PackageTest method suite.
// test suite from all defined tests
public static Test suite() {
// no tests in this class itself
TestSuite suite = new TestSuite("jmri.jmrit.PackageTest");
suite.addTest(jmri.jmrit.AbstractIdentifyTest.suite());
suite.addTest(new JUnit4TestAdapter(BundleTest.class));
suite.addTest(DccLocoAddressSelectorTest.suite());
suite.addTest(MemoryContentsTest.suite());
suite.addTest(new JUnit4TestAdapter(SoundTest.class));
suite.addTest(XmlFileTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.automat.PackageTest.class));
suite.addTest(jmri.jmrit.beantable.PackageTest.suite());
suite.addTest(jmri.jmrit.blockboss.PackageTest.suite());
suite.addTest(jmri.jmrit.catalog.PackageTest.suite());
suite.addTest(jmri.jmrit.decoderdefn.PackageTest.suite());
suite.addTest(jmri.jmrit.dispatcher.PackageTest.suite());
suite.addTest(jmri.jmrit.display.PackageTest.suite());
suite.addTest(jmri.jmrit.jython.PackageTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.log.PackageTest.class));
suite.addTest(jmri.jmrit.logix.PackageTest.suite());
suite.addTest(jmri.jmrit.operations.PackageTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.progsupport.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.mastbuilder.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.mailreport.PackageTest.class));
suite.addTest(jmri.jmrit.powerpanel.PackageTest.suite());
suite.addTest(jmri.jmrit.roster.PackageTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.sendpacket.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.sensorgroup.PackageTest.class));
suite.addTest(jmri.jmrit.simpleclock.PackageTest.suite());
suite.addTest(jmri.jmrit.symbolicprog.PackageTest.suite());
suite.addTest(jmri.jmrit.tracker.PackageTest.suite());
suite.addTest(jmri.jmrit.ussctc.PackageTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.consisttool.PackageTest.class));
suite.addTest(jmri.jmrit.withrottle.PackageTest.suite());
suite.addTest(jmri.jmrit.ampmeter.PackageTest.suite());
suite.addTest(jmri.jmrit.lcdclock.PackageTest.suite());
suite.addTest(jmri.jmrit.throttle.PackageTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.audio.PackageTest.class));
suite.addTest(jmri.jmrit.turnoutoperations.PackageTest.suite());
suite.addTest(jmri.jmrit.dualdecoder.PackageTest.suite());
suite.addTest(jmri.jmrit.nixieclock.PackageTest.suite());
suite.addTest(jmri.jmrit.simpleprog.PackageTest.suite());
suite.addTest(jmri.jmrit.signalling.PackageTest.suite());
suite.addTest(jmri.jmrit.picker.PackageTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.speedometer.PackageTest.class));
suite.addTest(jmri.jmrit.analogclock.PackageTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.revhistory.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.sound.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.vsdecoder.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.simplelightctrl.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrit.simpleturnoutctrl.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(MemoryFrameActionTest.class));
suite.addTest(new JUnit4TestAdapter(ToolsMenuTest.class));
suite.addTest(new JUnit4TestAdapter(XmlFileLocationActionTest.class));
suite.addTest(new JUnit4TestAdapter(XmlFileValidateActionTest.class));
suite.addTest(new JUnit4TestAdapter(XmlFileValidateStartupActionFactoryTest.class));
suite.addTest(new JUnit4TestAdapter(DebugMenuTest.class));
suite.addTest(new JUnit4TestAdapter(LogixLoadActionTest.class));
suite.addTest(new JUnit4TestAdapter(XmlFileCheckActionTest.class));
return suite;
}
use of junit.framework.JUnit4TestAdapter in project JMRI by JMRI.
the class PackageTest method suite.
// test suite from all defined tests
public static Test suite() {
apps.tests.AllTest.initLogging();
TestSuite suite = new TestSuite("jmri.jmrix.grapevine.SerialTest");
suite.addTest(new JUnit4TestAdapter(SerialTurnoutTest.class));
suite.addTest(new JUnit4TestAdapter(SerialTurnoutTest1.class));
suite.addTest(new JUnit4TestAdapter(SerialTurnoutTest2.class));
suite.addTest(new JUnit4TestAdapter(SerialTurnoutTest3.class));
suite.addTest(new JUnit4TestAdapter(SerialTurnoutManagerTest.class));
suite.addTest(SerialLightTest.suite());
suite.addTest(new JUnit4TestAdapter(SerialLightManagerTest.class));
suite.addTest(new JUnit4TestAdapter(SerialSensorManagerTest.class));
suite.addTest(SerialNodeTest.suite());
suite.addTest(SerialMessageTest.suite());
suite.addTest(SerialReplyTest.suite());
suite.addTest(new JUnit4TestAdapter(SerialTrafficControllerTest.class));
suite.addTest(SerialAddressTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.grapevine.serialdriver.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.grapevine.configurexml.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(GrapevineMenuTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.grapevine.serialmon.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(GrapevineSystemConnectionMemoTest.class));
suite.addTest(new JUnit4TestAdapter(SerialPortControllerTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.grapevine.nodeconfig.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.grapevine.nodetable.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.grapevine.packetgen.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(SerialConnectionTypeListTest.class));
suite.addTest(new JUnit4TestAdapter(SerialSensorTest.class));
suite.addTest(new JUnit4TestAdapter(SerialSignalHeadTest.class));
return suite;
}
use of junit.framework.JUnit4TestAdapter in project JMRI by JMRI.
the class PackageTest method suite.
// test suite from all defined tests
public static Test suite() {
apps.tests.AllTest.initLogging();
TestSuite suite = new TestSuite("jmri.jmrix.rps.RpsTest");
suite.addTest(MeasurementTest.suite());
suite.addTest(PositionFileTest.suite());
suite.addTest(ReadingTest.suite());
suite.addTest(EngineTest.suite());
suite.addTest(new JUnit4TestAdapter(RpsSensorManagerTest.class));
suite.addTest(jmri.jmrix.rps.RpsSensorTest.suite());
suite.addTest(jmri.jmrix.rps.RegionTest.suite());
suite.addTest(jmri.jmrix.rps.TransformTest.suite());
suite.addTest(new JUnit4TestAdapter(BundleTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.rps.serial.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.rps.configurexml.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.rps.aligntable.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.rps.reversealign.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(RpsPositionIconTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.rps.rpsmon.PackageTest.class));
// do 2nd to display in front
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.rps.swing.PackageTest.class));
// do 3rd to display in front
suite.addTest(jmri.jmrix.rps.csvinput.CsvTest.suite());
// do 4th to display in front
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.rps.trackingpanel.PackageTest.class));
// test all algorithms as a bunch
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.rps.algorithms.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(AlgorithmsTest.class));
suite.addTest(new JUnit4TestAdapter(DistributorTest.class));
suite.addTest(new JUnit4TestAdapter(ModelTest.class));
suite.addTest(new JUnit4TestAdapter(PollingFileTest.class));
suite.addTest(new JUnit4TestAdapter(RpsConnectionTypeListTest.class));
suite.addTest(new JUnit4TestAdapter(RpsMenuTest.class));
suite.addTest(new JUnit4TestAdapter(RpsReporterManagerTest.class));
suite.addTest(new JUnit4TestAdapter(RpsSystemConnectionMemoTest.class));
suite.addTest(new JUnit4TestAdapter(ReceiverTest.class));
suite.addTest(new JUnit4TestAdapter(TransmitterTest.class));
suite.addTest(new JUnit4TestAdapter(RpsBlockTest.class));
suite.addTest(new JUnit4TestAdapter(RpsReporterTest.class));
return suite;
}
use of junit.framework.JUnit4TestAdapter in project JMRI by JMRI.
the class PackageTest method suite.
// test suite from all defined tests
public static Test suite() {
apps.tests.AllTest.initLogging();
TestSuite suite = new TestSuite("jmri.jmrix.tmcc.SerialTest");
suite.addTest(new JUnit4TestAdapter(SerialTurnoutTest.class));
suite.addTest(new JUnit4TestAdapter(SerialTurnoutManagerTest.class));
suite.addTest(SerialMessageTest.suite());
suite.addTest(SerialReplyTest.suite());
suite.addTest(new JUnit4TestAdapter(SerialTrafficControllerTest.class));
suite.addTest(SerialAddressTest.suite());
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.tmcc.serialdriver.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.tmcc.configurexml.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.tmcc.packetgen.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(TMCCMenuTest.class));
suite.addTest(new JUnit4TestAdapter(jmri.jmrix.tmcc.serialmon.PackageTest.class));
suite.addTest(new JUnit4TestAdapter(TMCCSystemConnectionMemoTest.class));
suite.addTest(new JUnit4TestAdapter(SerialPortControllerTest.class));
suite.addTest(new JUnit4TestAdapter(SerialConnectionTypeListTest.class));
suite.addTest(new JUnit4TestAdapter(SerialThrottleManagerTest.class));
suite.addTest(new JUnit4TestAdapter(SerialThrottleTest.class));
return suite;
}
use of junit.framework.JUnit4TestAdapter in project bnd by bndtools.
the class Activator method flatten.
public int flatten(List<Test> list, TestSuite suite) {
int realCount = 0;
for (Enumeration<?> e = suite.tests(); e.hasMoreElements(); ) {
Test test = (Test) e.nextElement();
if (test instanceof JUnit4TestAdapter) {
list.add(test);
for (Test t : ((JUnit4TestAdapter) test).getTests()) {
if (t instanceof TestSuite) {
realCount += flatten(list, (TestSuite) t);
} else {
list.add(t);
realCount++;
}
}
continue;
}
list.add(test);
if (test instanceof TestSuite) {
realCount += flatten(list, (TestSuite) test);
} else {
realCount++;
}
}
return realCount;
}
Aggregations