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