@Test public void testTryToSaveResponseIntoSequenceWhenResponseDoesNotBelongsToSequence() { response = new WilmaHttpResponse(isVolatile); underTest.tryToSaveResponseIntoSequence(response); verify(headerUtil, times(0)).resolveSequenceHeader(Mockito.anyString()); }
public void tryToSaveResponseIntoSequence(final WilmaHttpResponse response) { String headerParameter = response.getSequenceId(); if (headerParameter != null) { String[] sequenceKeys = headerUtil.resolveSequenceHeader(headerParameter); for (String key : sequenceKeys) { addResponseToSequence(key, response); } } }
SequenceManager implements SequenceDescriptorHolder { public void tryToSaveResponseIntoSequence(final WilmaHttpResponse response) { String headerParameter = response.getSequenceId(); if (headerParameter != null) { String[] sequenceKeys = headerUtil.resolveSequenceHeader(headerParameter); for (String key : sequenceKeys) { addResponseToSequence(key, response); } } } }
SequenceManager implements SequenceDescriptorHolder { public void tryToSaveResponseIntoSequence(final WilmaHttpResponse response) { String headerParameter = response.getSequenceId(); if (headerParameter != null) { String[] sequenceKeys = headerUtil.resolveSequenceHeader(headerParameter); for (String key : sequenceKeys) { addResponseToSequence(key, response); } } }  }
SequenceManager implements SequenceDescriptorHolder { public void tryToSaveResponseIntoSequence(final WilmaHttpResponse response) { String headerParameter = response.getSequenceId(); if (headerParameter != null) { String[] sequenceKeys = headerUtil.resolveSequenceHeader(headerParameter); for (String key : sequenceKeys) { addResponseToSequence(key, response); } } }  void handleRequest(final WilmaHttpRequest request); void cleanUpDescriptors(); void addSequenceDescriptor(final String descriptorKey, final SequenceDescriptor descriptor); void removeSequenceDescriptors(final String groupName); void setStatusOfDescriptors(final String groupName, final boolean newStatus); void dropAllSequences(); void tryToSaveResponseIntoSequence(final WilmaHttpResponse response); Map<String, WilmaSequence> getSequences(final String sequenceDescriptorName); @Override void addAllSequenceDescriptors(final StubDescriptor stubDescriptor); Map<String, SequenceDescriptor> getDescriptors(); }
SequenceManager implements SequenceDescriptorHolder { public void tryToSaveResponseIntoSequence(final WilmaHttpResponse response) { String headerParameter = response.getSequenceId(); if (headerParameter != null) { String[] sequenceKeys = headerUtil.resolveSequenceHeader(headerParameter); for (String key : sequenceKeys) { addResponseToSequence(key, response); } } }  void handleRequest(final WilmaHttpRequest request); void cleanUpDescriptors(); void addSequenceDescriptor(final String descriptorKey, final SequenceDescriptor descriptor); void removeSequenceDescriptors(final String groupName); void setStatusOfDescriptors(final String groupName, final boolean newStatus); void dropAllSequences(); void tryToSaveResponseIntoSequence(final WilmaHttpResponse response); Map<String, WilmaSequence> getSequences(final String sequenceDescriptorName); @Override void addAllSequenceDescriptors(final StubDescriptor stubDescriptor); Map<String, SequenceDescriptor> getDescriptors();  }