Autosens !=0 && IS_NOT_AVAILABLE doesn't exist enymore
This commit is contained in:
parent
af739a3b66
commit
63d5ef4aa7
1 changed files with 0 additions and 2 deletions
|
@ -63,8 +63,6 @@ public class TriggerAutosensValueTest {
|
||||||
when(IobCobCalculatorPlugin.getPlugin().getLastAutosensData("Automation trigger")).thenReturn(new AutosensData());
|
when(IobCobCalculatorPlugin.getPlugin().getLastAutosensData("Automation trigger")).thenReturn(new AutosensData());
|
||||||
t = new TriggerAutosensValue().setValue(80).comparator(Comparator.Compare.IS_EQUAL_OR_LESSER);
|
t = new TriggerAutosensValue().setValue(80).comparator(Comparator.Compare.IS_EQUAL_OR_LESSER);
|
||||||
Assert.assertFalse(t.shouldRun());
|
Assert.assertFalse(t.shouldRun());
|
||||||
t = new TriggerAutosensValue().comparator(Comparator.Compare.IS_NOT_AVAILABLE);
|
|
||||||
Assert.assertTrue(t.shouldRun());
|
|
||||||
|
|
||||||
// Test autosensData == null and Comparator == IS_NOT_AVAILABLE
|
// Test autosensData == null and Comparator == IS_NOT_AVAILABLE
|
||||||
when(IobCobCalculatorPlugin.getPlugin().getLastAutosensData("Automation trigger")).thenReturn(null);
|
when(IobCobCalculatorPlugin.getPlugin().getLastAutosensData("Automation trigger")).thenReturn(null);
|
||||||
|
|
Loading…
Reference in a new issue