Search in sources :

Example 11 with SignalSystem

use of jmri.SignalSystem in project JMRI by JMRI.

the class SignalHeadSignalMastTest method testSignalSystemLink.

@Test
public void testSignalSystemLink() {
    SignalMast s = InstanceManager.getDefault(jmri.SignalMastManager.class).provideSignalMast("IF$shsm:basic:one-searchlight:IH2");
    SignalSystem sy = s.getSignalSystem();
    Assert.assertNotNull(sy);
    Assert.assertEquals("Proceed", s.getSignalSystem().getProperty("Clear", "indication"));
}
Also used : SignalMast(jmri.SignalMast) SignalSystem(jmri.SignalSystem) Test(org.junit.Test)

Aggregations

SignalSystem (jmri.SignalSystem)11 Test (org.junit.Test)9 FocusEvent (java.awt.event.FocusEvent)1 FocusListener (java.awt.event.FocusListener)1 JLabel (javax.swing.JLabel)1 SignalMast (jmri.SignalMast)1 SignalSystemManager (jmri.SignalSystemManager)1 DefaultSignalSystem (jmri.implementation.DefaultSignalSystem)1