Example #1
0
 @SuppressWarnings({"unchecked", "rawtypes"})
 protected static void testInputOutputFn(PType ptype, Object java, Object avro) {
   initialize(ptype);
   assertEquals(java, ptype.getInputMapFn().map(avro));
   assertEquals(avro, ptype.getOutputMapFn().map(java));
 }
Example #2
0
 private static void initialize(PType ptype) {
   ptype.getInputMapFn().initialize();
   ptype.getOutputMapFn().initialize();
 }