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"));
}
Aggregations