@Test public void shouldNotBeEqualIfHasDifferentValue() throws Exception { ConstantGenerator<Integer> firstGenerator = new ConstantGenerator<Integer>(1439); ConstantGenerator<Integer> secondGenerator = new ConstantGenerator<Integer>(22984); boolean equal = firstGenerator.equals(secondGenerator); assertThat(equal, is(false)); }
@Override public boolean equals(Object other) { return EqualsBuilder.reflectionEquals(this, other); }
ConstantGenerator extends AbstractGenerator<T> { @Override public boolean equals(Object other) { return EqualsBuilder.reflectionEquals(this, other); } }
ConstantGenerator extends AbstractGenerator<T> { @Override public boolean equals(Object other) { return EqualsBuilder.reflectionEquals(this, other); } ConstantGenerator(T value); }
ConstantGenerator extends AbstractGenerator<T> { @Override public boolean equals(Object other) { return EqualsBuilder.reflectionEquals(this, other); } ConstantGenerator(T value); @Override T next(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
ConstantGenerator extends AbstractGenerator<T> { @Override public boolean equals(Object other) { return EqualsBuilder.reflectionEquals(this, other); } ConstantGenerator(T value); @Override T next(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }