1 16 17 package test.encoding; 18 19 import junit.framework.TestCase; 20 import org.apache.axis.encoding.TypeMappingRegistryImpl; 21 import org.apache.axis.Constants; 22 23 import javax.xml.rpc.encoding.TypeMapping ; 24 25 28 public class TestDefaultTM extends TestCase { 29 36 public void testNoSOAPENCTypes() throws Exception { 37 checkTypes(null); 38 checkTypes("1.0"); 39 checkTypes("1.1"); 40 checkTypes("1.2"); 41 checkTypes("1.3"); 42 } 43 44 private void checkTypes(String version) throws Exception { 45 TypeMappingRegistryImpl tmr = new TypeMappingRegistryImpl(); 46 tmr.doRegisterFromVersion(version); 47 TypeMapping tm = tmr.getDefaultTypeMapping(); 48 assertNull("Found mapping for soapenc:string in TM version " + version, 49 tm.getDeserializer(null, Constants.SOAP_STRING)); 50 } 51 } 52 | Popular Tags |