Skip to content

Commit

Permalink
Merge branch 'master' into eurostag_maincc
Browse files Browse the repository at this point in the history
  • Loading branch information
CBiasuzzi committed Jan 18, 2018
2 parents 7a72008 + 36007f3 commit 3939701
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public void getPostContingencyIdTest() {
}

@Test
public void getUnitEnumTest() {
Stream.of( LimitViolationType.values()).forEach( t ->
assertNotNull(OnlineUtils.getUnit(t))
);
public void getUnitEnumTest() {
assertEquals(UnitEnum.MW, OnlineUtils.getUnit(LimitViolationType.CURRENT));
assertEquals(UnitEnum.KV, OnlineUtils.getUnit(LimitViolationType.LOW_VOLTAGE));
assertEquals(UnitEnum.KV, OnlineUtils.getUnit(LimitViolationType.HIGH_VOLTAGE));
}
}

0 comments on commit 3939701

Please sign in to comment.