Package thrift.test

Examples of thrift.test.Opt4


    assertEquals(true, EncodingUtils.testBit(Short.MIN_VALUE, 15));
    assertEquals(false, EncodingUtils.testBit(Short.MIN_VALUE, 14));
  }

  public void testOpt4() throws Exception {
    Opt4 x = new Opt4();
    assertEquals(false, x.isSetDef1());
    x.setDef1(3);
    assertEquals(true, x.isSetDef1());
    assertEquals(false, x.isSetDef2());

    Opt4 copy = new Opt4(x);
    assertEquals(true, copy.isSetDef1());
    copy.unsetDef1();
    assertEquals(false, copy.isSetDef1());
    assertEquals(true, x.isSetDef1());
  }
View Full Code Here

TOP

Related Classes of thrift.test.Opt4

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.