示例#1
0
 @Test
 public void metadataMarshaller_invalid() {
   try {
     metadataMarshaller.parseBytes(new byte[] {-127});
     fail("Expected exception");
   } catch (Exception ex) {
     assertTrue(ex.getCause() instanceof TException);
   }
 }
示例#2
0
 @Test
 public void metadataMarshaller_roundtrip() {
   Message m = new Message();
   m.i = 2;
   assertEquals(m, metadataMarshaller.parseBytes(metadataMarshaller.toBytes(m)));
 }