Exemplo n.º 1
0
 @Test
 @SuppressWarnings("rawtypes")
 public void testTriples() throws Exception {
   AvroType at = Avros.triples(Avros.strings(), Avros.strings(), Avros.strings());
   Tuple3 j = Tuple3.of("a", "b", "c");
   GenericData.Record w = new GenericData.Record(at.getSchema());
   w.put(0, new Utf8("a"));
   w.put(1, new Utf8("b"));
   w.put(2, new Utf8("c"));
   testInputOutputFn(at, j, w);
 }