use of org.qi4j.runtime.property.PropertyEqualityTest.Other in project qi4j-sdk by Qi4j.
the class ValueEqualityTest method givenValuesOfDifferentTypesWhenTestingValueDescriptorEqualityExpectNotEquals.
@Test
public void givenValuesOfDifferentTypesWhenTestingValueDescriptorEqualityExpectNotEquals() {
Some some = buildSomeValue(module);
ValueDescriptor someDescriptor = qi4j.api().valueDescriptorFor(some);
Other other = buildOtherValue(module);
ValueDescriptor otherDescriptor = qi4j.api().valueDescriptorFor(other);
assertThat("ValueDescriptors not equal", someDescriptor, not(equalTo(otherDescriptor)));
assertThat("ValueDescriptors hashcode not equal", someDescriptor.hashCode(), not(equalTo(otherDescriptor.hashCode())));
}
Aggregations