WilmaService { public boolean uploadConditionChecker(String fileName, File file) { LOG.debug("Upload condition checker configuration."); return fileUpload.uploadConditionChecker(fileName, file); } 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 public void testUploadConditionChecker() { wilmaService.uploadConditionChecker(FILE_NAME, MOCK_FILE); verify(fileUpload).uploadConditionChecker(FILE_NAME, MOCK_FILE); verifyNoMoreInteractions(wilmaApplication, messageLoggingConfiguration, operationConfiguration, localhostBlockingConfiguration, stubConfiguration, fileUpload); }