@Test public void shouldReturnWithProperBooleanValueForSetterRequest() { when(client.sendSetterRequest(MARKING_STATUS_SETTER_URL_ON)).thenReturn(true); when(client.sendSetterRequest(MARKING_STATUS_SETTER_URL_OFF)).thenReturn(false); assertTrue(responseMessageVolatilityConfiguration.setResponseMessageVolatilityStatus(ON)); assertFalse(responseMessageVolatilityConfiguration.setResponseMessageVolatilityStatus(OFF)); verify(client, never()).sendGetterRequest(anyString()); }
public boolean setResponseMessageVolatilityStatus(ResponseMessageVolatilityStatus control) { LOG.debug("Call response message volatility setter API with value: " + control); String postfix = String.format(STATUS_SETTER_URL_POSTFIX_FORMAT, control.toString().toLowerCase()); return setterRequest(postfix); }
ResponseMessageVolatilityConfiguration extends AbstractConfiguration { public boolean setResponseMessageVolatilityStatus(ResponseMessageVolatilityStatus control) { LOG.debug("Call response message volatility setter API with value: " + control); String postfix = String.format(STATUS_SETTER_URL_POSTFIX_FORMAT, control.toString().toLowerCase()); return setterRequest(postfix); } }
ResponseMessageVolatilityConfiguration extends AbstractConfiguration { public boolean setResponseMessageVolatilityStatus(ResponseMessageVolatilityStatus control) { LOG.debug("Call response message volatility setter API with value: " + control); String postfix = String.format(STATUS_SETTER_URL_POSTFIX_FORMAT, control.toString().toLowerCase()); return setterRequest(postfix); } ResponseMessageVolatilityConfiguration(WilmaServiceConfig config);  ResponseMessageVolatilityConfiguration(WilmaServiceConfig config, WilmaHttpClient client); }
ResponseMessageVolatilityConfiguration extends AbstractConfiguration { public boolean setResponseMessageVolatilityStatus(ResponseMessageVolatilityStatus control) { LOG.debug("Call response message volatility setter API with value: " + control); String postfix = String.format(STATUS_SETTER_URL_POSTFIX_FORMAT, control.toString().toLowerCase()); return setterRequest(postfix); } ResponseMessageVolatilityConfiguration(WilmaServiceConfig config);  ResponseMessageVolatilityConfiguration(WilmaServiceConfig config, WilmaHttpClient client); ResponseMessageVolatilityStatus getResponseMessageVolatilityStatus(); boolean setResponseMessageVolatilityStatus(ResponseMessageVolatilityStatus control); }
ResponseMessageVolatilityConfiguration extends AbstractConfiguration { public boolean setResponseMessageVolatilityStatus(ResponseMessageVolatilityStatus control) { LOG.debug("Call response message volatility setter API with value: " + control); String postfix = String.format(STATUS_SETTER_URL_POSTFIX_FORMAT, control.toString().toLowerCase()); return setterRequest(postfix); } ResponseMessageVolatilityConfiguration(WilmaServiceConfig config);  ResponseMessageVolatilityConfiguration(WilmaServiceConfig config, WilmaHttpClient client); ResponseMessageVolatilityStatus getResponseMessageVolatilityStatus(); boolean setResponseMessageVolatilityStatus(ResponseMessageVolatilityStatus control);  }