@Test @DisplayName("consider request with same ID equal") void considerRequestWithSameIdEqual() { AggregateReadRequest<String> first = new AggregateReadRequest<>(ID, BATCH_SIZE); int differentBatch = first.batchSize() * 2; AggregateReadRequest<String> second = new AggregateReadRequest<>(ID, differentBatch); new EqualsTester().addEqualityGroup(first, second) .testEquals(); }
public int batchSize() { return batchSize; }
AggregateReadRequest implements ReadRequest<I> { public int batchSize() { return batchSize; } }
AggregateReadRequest implements ReadRequest<I> { public int batchSize() { return batchSize; } AggregateReadRequest(I recordId, int batchSize); }
AggregateReadRequest implements ReadRequest<I> { public int batchSize() { return batchSize; } AggregateReadRequest(I recordId, int batchSize); @Override I recordId(); int batchSize(); @Override boolean equals(Object o); @Override int hashCode(); }
AggregateReadRequest implements ReadRequest<I> { public int batchSize() { return batchSize; } AggregateReadRequest(I recordId, int batchSize); @Override I recordId(); int batchSize(); @Override boolean equals(Object o); @Override int hashCode();  }