@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)); }
private static void initialize(PType ptype) { ptype.getInputMapFn().initialize(); ptype.getOutputMapFn().initialize(); }