@Test public void testProcessShouldCallDecoderWhenEntityHasBinaryContent() throws ApplicationException { given(entity.getHeader(CONTENT_TYPE)).willReturn(FAST_INFOSET); given(decoder.decode(BODY)).willReturn(result); underTest.process(entity); verify(decoder).decode(BODY); }
@Override public void process(final WilmaHttpEntity entity) throws ApplicationException { if (isBinaryContent(entity)) { String responseBody = entity.getBody(); byte[] result = decompressor.decode(responseBody); entity.setInputStream(getInputStream(result)); } }
Base64DecoderProcessor extends ProcessorBase { @Override public void process(final WilmaHttpEntity entity) throws ApplicationException { if (isBinaryContent(entity)) { String responseBody = entity.getBody(); byte[] result = decompressor.decode(responseBody); entity.setInputStream(getInputStream(result)); } } }
Base64DecoderProcessor extends ProcessorBase { @Override public void process(final WilmaHttpEntity entity) throws ApplicationException { if (isBinaryContent(entity)) { String responseBody = entity.getBody(); byte[] result = decompressor.decode(responseBody); entity.setInputStream(getInputStream(result)); } }  }
Base64DecoderProcessor extends ProcessorBase { @Override public void process(final WilmaHttpEntity entity) throws ApplicationException { if (isBinaryContent(entity)) { String responseBody = entity.getBody(); byte[] result = decompressor.decode(responseBody); entity.setInputStream(getInputStream(result)); } }  @Override void process(final WilmaHttpEntity entity); }
Base64DecoderProcessor extends ProcessorBase { @Override public void process(final WilmaHttpEntity entity) throws ApplicationException { if (isBinaryContent(entity)) { String responseBody = entity.getBody(); byte[] result = decompressor.decode(responseBody); entity.setInputStream(getInputStream(result)); } }  @Override void process(final WilmaHttpEntity entity);  }