1 package test.encoding; 2 3 import org.apache.axis.AxisFault; 4 import org.apache.axis.client.Call; 5 import test.GenericLocalTest; 6 7 import java.util.Vector ; 8 9 public class TestCircularRefs extends GenericLocalTest { 10 public TestCircularRefs() { 11 super("foo"); 12 } 13 14 public TestCircularRefs(String s) { 15 super(s); 16 } 17 18 public void testCircularVectors() throws Exception { 19 try { 20 Call call = getCall(); 21 Object result = call.invoke("getCircle", null); 22 } catch (AxisFault af){ 23 return; 24 } 25 fail("Expected a fault"); 26 30 } 32 33 38 public Vector getCircle() { 39 Vector vector1 = new Vector (); 40 vector1.addElement("AString"); 41 Vector vector2 = new Vector (); 42 vector2.addElement(vector1); 43 vector1.addElement(vector2); 44 return vector2; 45 } 46 } 47 | Popular Tags |