@Test public void testControlGroup() { ControlGroupRequest controlGroupRequest= new ControlGroupRequest(testGroupId, GroupControlOperation.START); cut.controlGroup(controlGroupRequest, systemUser); ControlGroupWebServerRequest wsCommand = new ControlGroupWebServerRequest(testGroupId, WebServerControlOperation.START); verify(mockGroupWebServerControlService).controlGroup(wsCommand, systemUser); ControlGroupJvmRequest jvmCommand = new ControlGroupJvmRequest(testGroupId, JvmControlOperation.START); verify(mockGroupJvmControlService).controlGroup(jvmCommand, systemUser); }
@Transactional @Override public void controlGroup(ControlGroupRequest controlGroupRequest, User aUser) { LOGGER.info("begin controlGroup operation {} for groupId {}", controlGroupRequest.getControlOperation(), controlGroupRequest.getGroupId()); controlWebServers(controlGroupRequest, aUser); controlJvms(controlGroupRequest, aUser); }
GroupControlServiceImpl implements GroupControlService { @Transactional @Override public void controlGroup(ControlGroupRequest controlGroupRequest, User aUser) { LOGGER.info("begin controlGroup operation {} for groupId {}", controlGroupRequest.getControlOperation(), controlGroupRequest.getGroupId()); controlWebServers(controlGroupRequest, aUser); controlJvms(controlGroupRequest, aUser); } }
GroupControlServiceImpl implements GroupControlService { @Transactional @Override public void controlGroup(ControlGroupRequest controlGroupRequest, User aUser) { LOGGER.info("begin controlGroup operation {} for groupId {}", controlGroupRequest.getControlOperation(), controlGroupRequest.getGroupId()); controlWebServers(controlGroupRequest, aUser); controlJvms(controlGroupRequest, aUser); } GroupControlServiceImpl(
            final GroupWebServerControlService theGroupWebServerControlService,
            final GroupJvmControlService theGroupJvmControlService); }
GroupControlServiceImpl implements GroupControlService { @Transactional @Override public void controlGroup(ControlGroupRequest controlGroupRequest, User aUser) { LOGGER.info("begin controlGroup operation {} for groupId {}", controlGroupRequest.getControlOperation(), controlGroupRequest.getGroupId()); controlWebServers(controlGroupRequest, aUser); controlJvms(controlGroupRequest, aUser); } GroupControlServiceImpl(
            final GroupWebServerControlService theGroupWebServerControlService,
            final GroupJvmControlService theGroupJvmControlService); @Transactional @Override void controlGroup(ControlGroupRequest controlGroupRequest, User aUser); @Override void controlGroups(final ControlGroupRequest controlGroupRequest, final User user); }
GroupControlServiceImpl implements GroupControlService { @Transactional @Override public void controlGroup(ControlGroupRequest controlGroupRequest, User aUser) { LOGGER.info("begin controlGroup operation {} for groupId {}", controlGroupRequest.getControlOperation(), controlGroupRequest.getGroupId()); controlWebServers(controlGroupRequest, aUser); controlJvms(controlGroupRequest, aUser); } GroupControlServiceImpl(
            final GroupWebServerControlService theGroupWebServerControlService,
            final GroupJvmControlService theGroupJvmControlService); @Transactional @Override void controlGroup(ControlGroupRequest controlGroupRequest, User aUser); @Override void controlGroups(final ControlGroupRequest controlGroupRequest, final User user);  }