@Test public void testMarkMessageHeaderWhenRequested() { given(configurationAccess.getProperties()).willReturn(messageMarkerRequest); given(messageMarkerRequest.getNeedMessageMarker()).willReturn(true); given(request.getWilmaMessageId()).willReturn("blah"); underTest.markMessageHeader(request); verify(request).addHeaderUpdate(WilmaHttpEntity.WILMA_LOGGER_ID, "blah"); }
@Override public void markMessageHeader(final WilmaHttpRequest request) { MessageMarkerRequest messageMarkerRequest = configurationAccess.getProperties(); if (messageMarkerRequest.getNeedMessageMarker()) { request.addHeaderUpdate(WilmaHttpEntity.WILMA_LOGGER_ID, request.getWilmaMessageId()); } }
PropertyBasedMessageMarker implements MessageMarker { @Override public void markMessageHeader(final WilmaHttpRequest request) { MessageMarkerRequest messageMarkerRequest = configurationAccess.getProperties(); if (messageMarkerRequest.getNeedMessageMarker()) { request.addHeaderUpdate(WilmaHttpEntity.WILMA_LOGGER_ID, request.getWilmaMessageId()); } } }
PropertyBasedMessageMarker implements MessageMarker { @Override public void markMessageHeader(final WilmaHttpRequest request) { MessageMarkerRequest messageMarkerRequest = configurationAccess.getProperties(); if (messageMarkerRequest.getNeedMessageMarker()) { request.addHeaderUpdate(WilmaHttpEntity.WILMA_LOGGER_ID, request.getWilmaMessageId()); } }  }
PropertyBasedMessageMarker implements MessageMarker { @Override public void markMessageHeader(final WilmaHttpRequest request) { MessageMarkerRequest messageMarkerRequest = configurationAccess.getProperties(); if (messageMarkerRequest.getNeedMessageMarker()) { request.addHeaderUpdate(WilmaHttpEntity.WILMA_LOGGER_ID, request.getWilmaMessageId()); } }  @Override void markMessageHeader(final WilmaHttpRequest request); }
PropertyBasedMessageMarker implements MessageMarker { @Override public void markMessageHeader(final WilmaHttpRequest request) { MessageMarkerRequest messageMarkerRequest = configurationAccess.getProperties(); if (messageMarkerRequest.getNeedMessageMarker()) { request.addHeaderUpdate(WilmaHttpEntity.WILMA_LOGGER_ID, request.getWilmaMessageId()); } }  @Override void markMessageHeader(final WilmaHttpRequest request);  }