1 4 5 package test.wsdl.attrGroup; 6 7 public class AttrGroupServiceTestCase extends junit.framework.TestCase { 8 public AttrGroupServiceTestCase(java.lang.String name) { 9 super(name); 10 } 11 public void test1AttrGroupService() throws Exception { 12 14 21 test.wsdl.attrGroup.Record1 rec1 = new test.wsdl.attrGroup.Record1(); 22 23 rec1.setElem1(1); 25 assertTrue("elem1 should be 1, but is "+rec1.getElem1(), rec1.getElem1()==1); 26 27 rec1.setAttr1(2); 29 assertTrue("attr1 should be 2, but is "+rec1.getAttr1(), rec1.getAttr1()==2); 30 31 rec1.setAttr3("x"); 33 assertTrue("attr3 should be x, but is "+rec1.getAttr3(), rec1.getAttr3().equals("x")); 34 35 rec1.setId(new org.apache.axis.types.Id("theId")); 37 rec1.setHref(new org.apache.axis.types.URI("a", "b")); 38 39 test.wsdl.attrGroup.Record2 rec2 = new test.wsdl.attrGroup.Record2(); 40 41 rec2.setElem2("2"); 43 44 rec2.setAttr1(2); 46 47 rec2.setAttr2(1.2); 49 50 rec2.setId(new org.apache.axis.types.Id("theId")); 52 } 53 54 67 } 68 | Popular Tags |