Skip to content

Commit

Permalink
Refactor GlobalRuleChangedHandlerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Feb 13, 2025
1 parent 31be6af commit ba61533
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ void assertHandleWithEmptyRuleName() {

@Test
void assertHandle() {
when(contextManager.getPersistServiceFacade().getRepository().query("/rules/foo_rule/active_version"))
.thenReturn("rule_value");
when(contextManager.getPersistServiceFacade().getRepository().query("/rules/foo_rule/active_version")).thenReturn("rule_value");
RuleConfiguration ruleConfig = mock(RuleConfiguration.class);
when(contextManager.getPersistServiceFacade().getMetaDataPersistFacade().getGlobalRuleService().load("foo_rule")).thenReturn(Optional.of(ruleConfig));
handler.handle(contextManager, new DataChangedEvent("/rules/foo_rule/active_version", "rule_value", Type.ADDED));
Expand Down

0 comments on commit ba61533

Please sign in to comment.