@Test public void assertIsEnabled() { when(regCenter.isExisted("/state/disable/app/test_app")).thenReturn(false); assertFalse(disableAppService.isDisabled("test_app")); verify(regCenter).isExisted("/state/disable/app/test_app"); }
public boolean isDisabled(final String appName) { return regCenter.isExisted(DisableAppNode.getDisableAppNodePath(appName)); }
DisableAppService { public boolean isDisabled(final String appName) { return regCenter.isExisted(DisableAppNode.getDisableAppNodePath(appName)); } }
DisableAppService { public boolean isDisabled(final String appName) { return regCenter.isExisted(DisableAppNode.getDisableAppNodePath(appName)); } DisableAppService(final CoordinatorRegistryCenter regCenter); }
DisableAppService { public boolean isDisabled(final String appName) { return regCenter.isExisted(DisableAppNode.getDisableAppNodePath(appName)); } DisableAppService(final CoordinatorRegistryCenter regCenter); void add(final String appName); void remove(final String appName); boolean isDisabled(final String appName); }
DisableAppService { public boolean isDisabled(final String appName) { return regCenter.isExisted(DisableAppNode.getDisableAppNodePath(appName)); } DisableAppService(final CoordinatorRegistryCenter regCenter); void add(final String appName); void remove(final String appName); boolean isDisabled(final String appName);  }