Skip to content
Permalink
Browse files

improve test

  • Loading branch information...
bobjacobsen committed Sep 18, 2018
1 parent c7a0cc3 commit d87554b2e6f3e7665eeea2643d19149cdad4b098
Showing with 3 additions and 1 deletion.
  1. +3 −1 java/test/jmri/BlockTest.java
@@ -97,8 +97,10 @@ public void testSensorSequence() throws JmriException {
count = 0;
Block b = new Block("SystemName");
Sensor s = sm.provideSensor("IS12");
s.setState(jmri.Sensor.UNKNOWN);

Assert.assertEquals("Initial state", Block.UNDETECTED, b.getState()); // state until sensor is set

Assert.assertEquals("Initial state", Block.UNKNOWN, b.getState());
b.setSensor("IS12");
s.setState(jmri.Sensor.ACTIVE);
Assert.assertEquals("State with sensor active", Block.OCCUPIED, s.getState());

0 comments on commit d87554b

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