Skip to content

Commit

Permalink
Style check
Browse files Browse the repository at this point in the history
  • Loading branch information
thangqp committed Nov 28, 2023
1 parent dbdb92f commit 384ab5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ public static AbstractExpertRule entityToDto(ExpertRuleEntity filterEntity) {
if (filterEntity.getValue() != null) {
if (isMultipleCriteriaOperator(filterEntity.getOperator())) { // for multiple values
ruleBuilder.values(Stream.of(filterEntity.getValue().split(",")).map(Double::valueOf).collect(Collectors.toSet()));
}
else { // for single value
} else { // for single value
ruleBuilder.value(Double.valueOf(filterEntity.getValue()));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public void testEvaluateExpertFilterInAndNotInOperators() {
VoltageLevel voltageLevel1 = Mockito.mock(VoltageLevel.class);
Mockito.when(voltageLevel1.getId()).thenReturn("VL1");
Mockito.when(voltageLevel1.getNominalV()).thenReturn(13.0);
Mockito.when(voltageLevel1.getSubstation()).thenReturn(Optional.of(substation1));

Mockito.when(voltageLevel1.getSubstation()).thenReturn(Optional.of(substation1));

Terminal terminal1 = Mockito.mock(Terminal.class);
Mockito.when(terminal1.getVoltageLevel()).thenReturn(voltageLevel1);
Expand Down

0 comments on commit 384ab5b

Please sign in to comment.