Search in sources :

Example 1 with SlotManager

use of jmri.jmrix.loconet.SlotManager in project JMRI by JMRI.

the class LocoNetMenuTest method testCTor.

@Test
public void testCTor() {
    LnTrafficController lnis = new LocoNetInterfaceScaffold();
    SlotManager slotmanager = new SlotManager(lnis);
    LocoNetSystemConnectionMemo memo = new LocoNetSystemConnectionMemo(lnis, slotmanager);
    LocoNetMenu t = new LocoNetMenu(memo);
    Assert.assertNotNull("exists", t);
}
Also used : SlotManager(jmri.jmrix.loconet.SlotManager) LocoNetInterfaceScaffold(jmri.jmrix.loconet.LocoNetInterfaceScaffold) LocoNetSystemConnectionMemo(jmri.jmrix.loconet.LocoNetSystemConnectionMemo) LnTrafficController(jmri.jmrix.loconet.LnTrafficController) Test(org.junit.Test)

Example 2 with SlotManager

use of jmri.jmrix.loconet.SlotManager in project JMRI by JMRI.

the class LnPr2PowerManagerTest method setUp.

// setup a default interface
@Before
@Override
public void setUp() {
    controller = new LocoNetInterfaceScaffold();
    slotmanager = new SlotManager(controller);
    PR2SystemConnectionMemo memo = new PR2SystemConnectionMemo(controller, slotmanager);
    memo.configureManagers();
    jmri.InstanceManager.setThrottleManager(memo.getPr2ThrottleManager());
    memo.getPr2ThrottleManager().requestThrottleSetup(new jmri.DccLocoAddress(3, false), true);
    p = new LnPr2PowerManager(memo);
}
Also used : SlotManager(jmri.jmrix.loconet.SlotManager) LocoNetInterfaceScaffold(jmri.jmrix.loconet.LocoNetInterfaceScaffold) Before(org.junit.Before)

Example 3 with SlotManager

use of jmri.jmrix.loconet.SlotManager in project JMRI by JMRI.

the class SlotMonDataModelTest method testCTor.

@Test
public void testCTor() {
    LnTrafficController lnis = new LocoNetInterfaceScaffold();
    SlotManager slotmanager = new SlotManager(lnis);
    LocoNetSystemConnectionMemo memo = new LocoNetSystemConnectionMemo(lnis, slotmanager);
    SlotMonDataModel t = new SlotMonDataModel(1, 19, memo);
    Assert.assertNotNull("exists", t);
}
Also used : SlotManager(jmri.jmrix.loconet.SlotManager) LocoNetInterfaceScaffold(jmri.jmrix.loconet.LocoNetInterfaceScaffold) LocoNetSystemConnectionMemo(jmri.jmrix.loconet.LocoNetSystemConnectionMemo) LnTrafficController(jmri.jmrix.loconet.LnTrafficController) Test(org.junit.Test)

Example 4 with SlotManager

use of jmri.jmrix.loconet.SlotManager in project JMRI by JMRI.

the class LnComponentFactoryTest method testCTor.

@Test
public void testCTor() {
    LnTrafficController lnis = new LocoNetInterfaceScaffold();
    SlotManager slotmanager = new SlotManager(lnis);
    LocoNetSystemConnectionMemo memo = new LocoNetSystemConnectionMemo(lnis, slotmanager);
    LnComponentFactory t = new LnComponentFactory(memo);
    Assert.assertNotNull("exists", t);
}
Also used : SlotManager(jmri.jmrix.loconet.SlotManager) LocoNetInterfaceScaffold(jmri.jmrix.loconet.LocoNetInterfaceScaffold) LocoNetSystemConnectionMemo(jmri.jmrix.loconet.LocoNetSystemConnectionMemo) LnTrafficController(jmri.jmrix.loconet.LnTrafficController) Test(org.junit.Test)

Aggregations

LocoNetInterfaceScaffold (jmri.jmrix.loconet.LocoNetInterfaceScaffold)4 SlotManager (jmri.jmrix.loconet.SlotManager)4 LnTrafficController (jmri.jmrix.loconet.LnTrafficController)3 LocoNetSystemConnectionMemo (jmri.jmrix.loconet.LocoNetSystemConnectionMemo)3 Test (org.junit.Test)3 Before (org.junit.Before)1