@Test public void testCleanUpDescriptors() { Map<String, SequenceDescriptor> descriptors = new ConcurrentHashMap<>(); descriptors.put("TestTeam-fistDescriptor-TestHandler", sequenceDescriptor); Whitebox.setInternalState(underTest, "descriptors", descriptors); underTest.cleanUpDescriptors(); verify(cleaner).cleanTheExpiredSequences(descriptors); }
public void cleanUpDescriptors() { cleaner.cleanTheExpiredSequences(descriptors); }
SequenceManager implements SequenceDescriptorHolder { public void cleanUpDescriptors() { cleaner.cleanTheExpiredSequences(descriptors); } }
SequenceManager implements SequenceDescriptorHolder { public void cleanUpDescriptors() { cleaner.cleanTheExpiredSequences(descriptors); }  }
SequenceManager implements SequenceDescriptorHolder { public void cleanUpDescriptors() { cleaner.cleanTheExpiredSequences(descriptors); }  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 cleanUpDescriptors() { cleaner.cleanTheExpiredSequences(descriptors); }  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();  }