package test.encoding; import org.apache.axis.Constants; import java.util.ArrayList; import java.util.HashMap; /** * Test deserialization of SOAP responses */ public class TestDeser2000 extends TestDeser { public TestDeser2000(String name) { super(name, Constants.URI_2000_SCHEMA_XSI, Constants.URI_2000_SCHEMA_XSD); } public void testMapWithNulls() throws Exception { HashMap m = new HashMap(); m.put(null, new Boolean("false")); m.put("hi", null); deserialize(" " + "" + "" + "false" + "" + "hi" + "" + "" + "", m); } public void testArrayWithNullInt() throws Exception { ArrayList list = new ArrayList(4); list.add(new Integer(1)); list.add(null); list.add(new Integer(3)); deserialize(" " + "1" + "" + "3" + "", list, true); } public void testArrayWithNullString() throws Exception { ArrayList list = new ArrayList(4); list.add("abc"); list.add(null); list.add("def"); deserialize(" " + "abc" + "" + "def" + "", list, true); } public void testNullSOAPBoolean() throws Exception { deserialize("", null); } }