Package thrift.test

Examples of thrift.test.OneOfEachZZ


  public void testCamelCaseSyntax() throws Exception {
    TSerializer   binarySerializer   = new   TSerializer(new TBinaryProtocol.Factory());
    TDeserializer binaryDeserializer = new TDeserializer(new TBinaryProtocol.Factory());

    OneOfEachZZ obj = new OneOfEachZZ();
    obj.setABite((byte) 0xae);
    obj.setImFalse(true);
    byte[] serBytes = binarySerializer.serialize(obj);
    binaryDeserializer.deserialize(obj, serBytes);
    assertTrue( obj.getABite() == (byte) 0xae );
    assertTrue( obj.isImFalse() == true );
  }
View Full Code Here

TOP

Related Classes of thrift.test.OneOfEachZZ

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.