@Test public void testDropSelectedStubConfigurationShouldCallTheTwoMethod() throws ClassNotFoundException { underTest.dropSelectedStubConfiguration(GROUPNAME_FIRST, request); ArgumentCaptor<DropCommand> argument = ArgumentCaptor.forClass(DropCommand.class); verify(sequenceManager).removeSequenceDescriptors(GROUPNAME_FIRST); verify(routingService, times(1)).performModification(argument.capture()); Assert.assertEquals(argument.getValue().getGroupName(), GROUPNAME_FIRST); Assert.assertEquals(argument.getValue().getRequest(), request); }
public void dropSelectedStubConfiguration(final String groupName, final HttpServletRequest request) throws ClassNotFoundException { sequenceManager.removeSequenceDescriptors(groupName); routingService.performModification(new DropCommand(groupName, request, urlAccessLogMessageAssembler)); serviceMap.detectServices(); }
StubConfigurationDropperService { public void dropSelectedStubConfiguration(final String groupName, final HttpServletRequest request) throws ClassNotFoundException { sequenceManager.removeSequenceDescriptors(groupName); routingService.performModification(new DropCommand(groupName, request, urlAccessLogMessageAssembler)); serviceMap.detectServices(); } }
StubConfigurationDropperService { public void dropSelectedStubConfiguration(final String groupName, final HttpServletRequest request) throws ClassNotFoundException { sequenceManager.removeSequenceDescriptors(groupName); routingService.performModification(new DropCommand(groupName, request, urlAccessLogMessageAssembler)); serviceMap.detectServices(); }  }
StubConfigurationDropperService { public void dropSelectedStubConfiguration(final String groupName, final HttpServletRequest request) throws ClassNotFoundException { sequenceManager.removeSequenceDescriptors(groupName); routingService.performModification(new DropCommand(groupName, request, urlAccessLogMessageAssembler)); serviceMap.detectServices(); }  void dropSelectedStubConfiguration(final String groupName, final HttpServletRequest request); }
StubConfigurationDropperService { public void dropSelectedStubConfiguration(final String groupName, final HttpServletRequest request) throws ClassNotFoundException { sequenceManager.removeSequenceDescriptors(groupName); routingService.performModification(new DropCommand(groupName, request, urlAccessLogMessageAssembler)); serviceMap.detectServices(); }  void dropSelectedStubConfiguration(final String groupName, final HttpServletRequest request);  }