Search in sources :

Example 6 with TestTrafficController

use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.

the class NmraNetComponentFactoryTest method setUp.

@Before
public void setUp() {
    Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    tc = new TestTrafficController();
    m = new CanSystemConnectionMemo();
    m.setSystemPrefix("ABC");
}
Also used : TestTrafficController(jmri.jmrix.can.TestTrafficController) CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) Before(org.junit.Before)

Example 7 with TestTrafficController

use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.

the class NmraNetMenuTest method setUp.

@Before
public void setUp() {
    Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    tc = new TestTrafficController();
    m = new CanSystemConnectionMemo();
    m.setSystemPrefix("ABC");
}
Also used : TestTrafficController(jmri.jmrix.can.TestTrafficController) CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) Before(org.junit.Before)

Example 8 with TestTrafficController

use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.

the class CbusProgrammerManagerTest method testGlobal.

public void testGlobal() {
    CbusProgrammerManager m = new CbusProgrammerManager(new TestTrafficController());
    Assert.assertTrue("no global mode", !m.isGlobalModePossible());
}
Also used : TestTrafficController(jmri.jmrix.can.TestTrafficController)

Example 9 with TestTrafficController

use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.

the class CbusProgrammerTest method testSetMode.

public void testSetMode() {
    CbusProgrammer p = new CbusProgrammer(10, new TestTrafficController());
    try {
        p.setMode(DefaultProgrammerManager.PAGEMODE);
    } catch (IllegalArgumentException e) {
        return;
    }
    Assert.fail("No IllegalArgumentException thrown");
}
Also used : TestTrafficController(jmri.jmrix.can.TestTrafficController)

Example 10 with TestTrafficController

use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.

the class CbusSensorManagerTest method setUp.

// The minimal setup for log4J
@Override
@Before
public void setUp() {
    apps.tests.Log4JFixture.setUp();
    jmri.util.JUnitUtil.resetInstanceManager();
    memo = new CanSystemConnectionMemo();
    memo.setTrafficController(new TestTrafficController());
    l = new CbusSensorManager(memo);
}
Also used : CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) TestTrafficController(jmri.jmrix.can.TestTrafficController) Before(org.junit.Before)

Aggregations

TestTrafficController (jmri.jmrix.can.TestTrafficController)15 CanSystemConnectionMemo (jmri.jmrix.can.CanSystemConnectionMemo)7 Before (org.junit.Before)7 CanMessage (jmri.jmrix.can.CanMessage)1