Search in sources :

Example 6 with ConditionalManager

use of jmri.ConditionalManager in project JMRI by JMRI.

the class DefaultConditionalManagerTest method testUserNameOverlap.

public void testUserNameOverlap() {
    ConditionalManager m = new DefaultConditionalManager();
    Conditional c1 = m.createNewConditional("IX02C01", "Foo");
    Conditional c2 = m.createNewConditional("IX02C02", "Foo");
    Assert.assertTrue(c1.getUserName().equals("Foo"));
    Assert.assertTrue(c2.getUserName().equals("Foo"));
}
Also used : ConditionalManager(jmri.ConditionalManager) Conditional(jmri.Conditional)

Aggregations

ConditionalManager (jmri.ConditionalManager)6 Conditional (jmri.Conditional)5 ConditionalAction (jmri.ConditionalAction)3 DefaultConditionalManager (jmri.managers.DefaultConditionalManager)3 ArrayList (java.util.ArrayList)2 ConditionalVariable (jmri.ConditionalVariable)2 Logix (jmri.Logix)2 DefaultConditional (jmri.implementation.DefaultConditional)2 DefaultConditionalAction (jmri.implementation.DefaultConditionalAction)2 Element (org.jdom2.Element)2 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)1 File (java.io.File)1 Date (java.util.Date)1 ScriptException (javax.script.ScriptException)1 Timer (javax.swing.Timer)1 Audio (jmri.Audio)1 JmriException (jmri.JmriException)1 Light (jmri.Light)1 Memory (jmri.Memory)1 NamedBean (jmri.NamedBean)1