WilmaService { public boolean changeStubConfigStatus(String groupName, StubConfigStatus status) { LOG.debug("Set stub configuration status to: {} for: {}", status, groupName); return stubConfiguration.setStubConfigStatus(groupName, status); } WilmaService(Properties properties); String getVersionInformation(); WilmaLoadInformation getActualLoadInformation(); boolean shutdownApplication(); MessageLoggingControlStatus getMessageLoggingStatus(); boolean setMessageLoggingStatus(MessageLoggingControlStatus control); OperationMode getOperationMode(); boolean setOperationMode(OperationMode mode); LocalhostControlStatus getLocalhostBlockingStatus(); boolean setLocalhostBlockingStatus(LocalhostControlStatus control); JSONObject getStubConfigInformation(); boolean changeStubConfigStatus(String groupName, StubConfigStatus status); boolean changeStubConfigOrder(String groupName, StubConfigOrder order); boolean dropStubConfig(String groupName); boolean persistActualStubConfig(); boolean uploadConditionChecker(String fileName, File file); boolean uploadTemplate(String fileName, File file); boolean uploadTemplateFormatter(String fileName, File file); boolean uploadStubConfiguration(String fileName, File file); boolean uploadStubConfiguration(WilmaStub resource); JSONObject callGetService(String queryString); void setWilmaApplication(WilmaApplication wilmaApplication); void setMessageLoggingConfiguration(MessageLoggingConfiguration messageLoggingConfiguration); void setOperationConfiguration(OperationConfiguration operationConfiguration); void setLocalhostBlockingConfiguration(LocalhostBlockingConfiguration localhostBlockingConfiguration); void setStubConfiguration(StubConfiguration stubConfiguration); void setFileUpload(Upload fileUpload); static final String WILMA_HOST_KEY; static final String WILMA_INTERNAL_PORT_KEY; }
@Test(dataProvider = "stubConfigStatus") public void testChangeStubConfigStatus(StubConfigStatus status) { wilmaService.changeStubConfigStatus(GROUP_NAME, status); verify(stubConfiguration).setStubConfigStatus(GROUP_NAME, status); verifyNoMoreInteractions(wilmaApplication, messageLoggingConfiguration, operationConfiguration, localhostBlockingConfiguration, stubConfiguration, fileUpload); }
@Test(dataProvider = "stubConfigOrders") public void testChangeStubConfigStatus(StubConfigOrder order) { wilmaService.changeStubConfigOrder(GROUP_NAME, order); verify(stubConfiguration).setStubConfigOrder(GROUP_NAME, order); verifyNoMoreInteractions(wilmaApplication, messageLoggingConfiguration, operationConfiguration, localhostBlockingConfiguration, stubConfiguration, fileUpload); }