Пример #1
0
 @Test
 public void testPairEquals() throws Exception {
   AvroType<Pair<Long, ByteBuffer>> at1 = Avros.pairs(Avros.longs(), Avros.bytes());
   AvroType<Pair<Long, ByteBuffer>> at2 = Avros.pairs(Avros.longs(), Avros.bytes());
   assertEquals(at1, at2);
   assertEquals(at1.hashCode(), at2.hashCode());
 }
Пример #2
0
 @Test
 public void testLongs() throws Exception {
   long j = Long.MAX_VALUE;
   testInputOutputFn(Avros.longs(), j, j);
 }