Package thrift.test

Examples of thrift.test.StructB.validate()


    StructA valid = new StructA("valid");
    StructA invalid = new StructA();

    StructB b = new StructB();
    try {
      b.validate();
      fail();
    } catch (TException e) {
      // expected
    }
View Full Code Here


    } catch (TException e) {
      // expected
    }

    b = new StructB().setAb(valid);
    b.validate();

    b = new StructB().setAb(invalid);
    try {
      b.validate();
      fail();
View Full Code Here

    b = new StructB().setAb(valid);
    b.validate();

    b = new StructB().setAb(invalid);
    try {
      b.validate();
      fail();
    } catch (TException e) {
      // expected
    }
View Full Code Here

      // expected
    }

    b = new StructB().setAb(valid).setAa(invalid);
    try {
      b.validate();
      fail();
    } catch (TException e) {
      // expected
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.