use of jmri.Turnout in project JMRI by JMRI.
the class AbstractTurnoutMgrTestBase method testUpperLower.
@Test
public void testUpperLower() {
Turnout t = l.provideTurnout("" + getNumToTest2());
Assert.assertNull(l.getTurnout(t.getSystemName().toLowerCase()));
}
use of jmri.Turnout in project JMRI by JMRI.
the class AbstractTurnoutMgrTestBase method testTurnoutPutGet.
@Test
public void testTurnoutPutGet() {
// create
Turnout t = l.newTurnout(getSystemName(getNumToTest1()), "mine");
// check
Assert.assertNotNull("real object returned ", t);
Assert.assertEquals("user name correct ", t, l.getByUserName("mine"));
Assert.assertEquals("system name correct ", t, l.getBySystemName(getSystemName(getNumToTest1())));
}
use of jmri.Turnout in project JMRI by JMRI.
the class ProxyTurnoutManagerTest method testPutGet.
public void testPutGet() {
// create
Turnout t = l.newTurnout(getSystemName(getNumToTest1()), "mine");
// check
Assert.assertTrue("real object returned ", t != null);
Assert.assertTrue("user name correct ", t == l.getByUserName("mine"));
Assert.assertTrue("system name correct ", t == l.getBySystemName(getSystemName(getNumToTest1())));
}
use of jmri.Turnout in project JMRI by JMRI.
the class ProxyTurnoutManagerTest method testDefaultNotInternal.
public void testDefaultNotInternal() {
Turnout lut = l.provideTurnout("211");
Assert.assertNotNull(lut);
Assert.assertEquals("JT211", lut.getSystemName());
}
use of jmri.Turnout in project JMRI by JMRI.
the class ProxyTurnoutManagerTest method testTwoNames.
public void testTwoNames() {
Turnout jl212 = l.provideTurnout("JT212");
Turnout jl211 = l.provideTurnout("JT211");
Assert.assertNotNull(jl212);
Assert.assertNotNull(jl211);
Assert.assertTrue(jl212 != jl211);
}
Aggregations