Skip to content
Permalink
Browse files

test auto

  • Loading branch information...
bobjacobsen committed Sep 23, 2018
1 parent ef006a3 commit 97014d45938855aa527716463357d042151d3683
Showing with 6 additions and 2 deletions.
  1. +6 −2 java/test/jmri/jmrix/openlcb/OlcbSignalMastTest.java
@@ -35,9 +35,12 @@

@Test
public void testCtor1() {
OlcbSignalMast t = new OlcbSignalMast("MF$olm:AAR-1946:PL-1-high-abs($1)");
OlcbSignalMast t = new OlcbSignalMast("MF$olm:AAR-1946:PL-1-high-abs($5)");

Assert.assertEquals("system name", "MF$olm:AAR-1946:PL-1-high-abs($1)", t.getSystemName());
Assert.assertEquals("system name", "MF$olm:AAR-1946:PL-1-high-abs($5)", t.getSystemName());

// check last reference using 5 above
Assert.assertEquals(5, OlcbSignalMast.getLastRef());
}

@Test
@@ -82,6 +85,7 @@ public void testReceiveLitPcerMessage() {
t.setNotLitEventId("1.2.3.4.5.6.7.2");
t.setHeldEventId("1.2.3.4.5.6.7.3");
t.setNotHeldEventId("1.2.3.4.5.6.7.4");

t.setOutputForAppearance("Clear", "1.2.3.4.5.6.7.10");
t.setOutputForAppearance("Approach", "1.2.3.4.5.6.7.11");
t.setOutputForAppearance("Permissive", "1.2.3.4.5.6.7.12");

0 comments on commit 97014d4

Please sign in to comment.
You can’t perform that action at this time.