@Test public void hashCodeTest() throws Exception { final Method methodFoo1 = TestDataObject1.class.getMethod("foo"); final UnionValueOptionContext test_uvoc = new UnionValueOptionContext(TestUnion.class, TestDataObject1.class, methodFoo1, ValueTypeCodec.NOOP_CODEC); assertEquals("HashCode", test_uvoc.hashCode(), TEST_UVOC_1.hashCode()); assertNotEquals("HashCode", TEST_UVOC_1.hashCode(), TEST_UVOC_2.hashCode()); }
@Override public int hashCode() { return bindingType.hashCode(); }
UnionValueOptionContext { @Override public int hashCode() { return bindingType.hashCode(); } }
UnionValueOptionContext { @Override public int hashCode() { return bindingType.hashCode(); } UnionValueOptionContext(final Class<?> unionType, final Class<?> valueType, final Method getter,
            final IllegalArgumentCodec<Object, Object> codec); }
UnionValueOptionContext { @Override public int hashCode() { return bindingType.hashCode(); } UnionValueOptionContext(final Class<?> unionType, final Class<?> valueType, final Method getter,
            final IllegalArgumentCodec<Object, Object> codec); @Override int hashCode(); @Override boolean equals(final Object obj); }
UnionValueOptionContext { @Override public int hashCode() { return bindingType.hashCode(); } UnionValueOptionContext(final Class<?> unionType, final Class<?> valueType, final Method getter,
            final IllegalArgumentCodec<Object, Object> codec); @Override int hashCode(); @Override boolean equals(final Object obj);  }