@Test void testSequencingIdentifier() { SequentialPolicy testSubject = new SequentialPolicy(); Object id1 = testSubject.getSequenceIdentifierFor(newStubDomainEvent(UUID.randomUUID())); Object id2 = testSubject.getSequenceIdentifierFor(newStubDomainEvent(UUID.randomUUID())); Object id3 = testSubject.getSequenceIdentifierFor(newStubDomainEvent(UUID.randomUUID())); assertEquals(id1, id2); assertEquals(id2, id3); assertEquals(id1, id3); }
@Override public Object getSequenceIdentifierFor(Object task) { return FULL_SEQUENTIAL_POLICY; }
SequentialPolicy implements SequencingPolicy<Object> { @Override public Object getSequenceIdentifierFor(Object task) { return FULL_SEQUENTIAL_POLICY; } }
SequentialPolicy implements SequencingPolicy<Object> { @Override public Object getSequenceIdentifierFor(Object task) { return FULL_SEQUENTIAL_POLICY; }  }
SequentialPolicy implements SequencingPolicy<Object> { @Override public Object getSequenceIdentifierFor(Object task) { return FULL_SEQUENTIAL_POLICY; }  @Override Object getSequenceIdentifierFor(Object task); }
SequentialPolicy implements SequencingPolicy<Object> { @Override public Object getSequenceIdentifierFor(Object task) { return FULL_SEQUENTIAL_POLICY; }  @Override Object getSequenceIdentifierFor(Object task);  }