Search in sources :

Example 16 with JUnit4TestAdapter

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;
}
Also used : TestSuite(junit.framework.TestSuite) JUnit4TestAdapter(junit.framework.JUnit4TestAdapter)

Example 17 with JUnit4TestAdapter

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;
}
Also used : TestSuite(junit.framework.TestSuite) JUnit4TestAdapter(junit.framework.JUnit4TestAdapter)

Example 18 with JUnit4TestAdapter

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;
}
Also used : TestSuite(junit.framework.TestSuite) JUnit4TestAdapter(junit.framework.JUnit4TestAdapter)

Example 19 with JUnit4TestAdapter

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;
}
Also used : TestSuite(junit.framework.TestSuite) JUnit4TestAdapter(junit.framework.JUnit4TestAdapter)

Example 20 with JUnit4TestAdapter

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;
}
Also used : TestSuite(junit.framework.TestSuite) Test(junit.framework.Test) JUnit4TestAdapter(junit.framework.JUnit4TestAdapter)

Aggregations

JUnit4TestAdapter (junit.framework.JUnit4TestAdapter)74 TestSuite (junit.framework.TestSuite)50 TestResult (junit.framework.TestResult)17 Test (org.junit.Test)6 Test (junit.framework.Test)2 Result (org.junit.runner.Result)2 I18nManagerTest (com.agiletec.aps.system.services.i18n.I18nManagerTest)1 I18nManagerCacheWrapperTest (com.agiletec.aps.system.services.i18n.cache.I18nManagerCacheWrapperTest)1 KeyGeneratorManagerTest (com.agiletec.aps.system.services.keygenerator.KeyGeneratorManagerTest)1 LangManagerTest (com.agiletec.aps.system.services.lang.LangManagerTest)1 ContentManagerTest (com.agiletec.plugins.jacms.aps.system.services.content.ContentManagerTest)1 ContentModelManagerTest (com.agiletec.plugins.jacms.aps.system.services.contentmodel.ContentModelManagerTest)1 ContentPageMapperManagerTest (com.agiletec.plugins.jacms.aps.system.services.contentpagemapper.ContentPageMapperManagerTest)1 ContentMapperCacheWrapperTest (com.agiletec.plugins.jacms.aps.system.services.contentpagemapper.cache.ContentMapperCacheWrapperTest)1 ResourceManagerTest (com.agiletec.plugins.jacms.aps.system.services.resource.ResourceManagerTest)1 ListLastIndexOfTester (com.google.common.collect.testing.testers.ListLastIndexOfTester)1 ListListIteratorTester (com.google.common.collect.testing.testers.ListListIteratorTester)1 ListSubListTester (com.google.common.collect.testing.testers.ListSubListTester)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 IOException (java.io.IOException)1