final Method methodFoo1 = TestDataObject1.class.getMethod("foo");
final Method methodFoo2 = TestDataObject2.class.getMethod("foo");
TEST_UVOC_1 = new UnionValueOptionContext(TestUnion.class, TestDataObject1.class, methodFoo1,
- ValueTypeCodec.NOOP_CODEC);
+ SchemaUnawareCodec.NOOP_CODEC);
TEST_UVOC_2 = new UnionValueOptionContext(TestUnion.class, TestDataObject2.class, methodFoo2,
- ValueTypeCodec.NOOP_CODEC);
+ SchemaUnawareCodec.NOOP_CODEC);
}
@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);
+ methodFoo1, SchemaUnawareCodec.NOOP_CODEC);
assertEquals("HashCode", test_uvoc.hashCode(), TEST_UVOC_1.hashCode());
assertNotEquals("HashCode", TEST_UVOC_1.hashCode(), TEST_UVOC_2.hashCode());
public void equalsTest() throws Exception {
final Method methodFoo1 = TestDataObject1.class.getMethod("foo");
final UnionValueOptionContext test_uvoc = new UnionValueOptionContext(TestUnion.class, TestDataObject1.class,
- methodFoo1, ValueTypeCodec.NOOP_CODEC);
+ methodFoo1, SchemaUnawareCodec.NOOP_CODEC);
assertTrue("Equals", TEST_UVOC_1.equals(test_uvoc));
assertFalse("Not equals", TEST_UVOC_1.equals(TEST_UVOC_2));