@Override public PojoWithSerializeWith readObject(ObjectInput input) throws IOException, ClassNotFoundException { return new PojoWithSerializeWith(PojoWithAttributes.readObject(input)); } }
public void testSerializableWithAnnotation() throws Exception { marshallAndAssertEquality(new PojoWithSerializeWith(20, "k2")); }
@Test(dependsOnMethods = "testReplicateMarshallableByPojo") public void testReplicateMarshallableByPojoToNewJoiningNode(Method m) { PojoWithSerializeWith pojo = new PojoWithSerializeWith(85, k(m)); doReplicatePojoToNewJoiningNode(m, pojo); }
public void testIsMarshallableSerializableWithAnnotation() throws Exception { PojoWithSerializeWith pojo = new PojoWithSerializeWith(17, "k1"); assertTrue(marshaller.isMarshallable(pojo)); }
public void testReplicateMarshallableByPojo(Method m) { PojoWithSerializeWith pojo = new PojoWithSerializeWith(17, k(m)); doReplicatePojo(m, pojo); }