1 package org.codehaus.xfire.plexus.type; 2 3 import org.codehaus.plexus.PlexusTestCase; 4 import org.codehaus.xfire.plexus.type.TypeMappingRegistry; 5 import org.codehaus.xfire.soap.SoapConstants; 6 import org.codehaus.xfire.type.TypeMapping; 7 8 /*** 9 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a> 10 * @since Nov 9, 2004 11 */ 12 public class TypeMappingRegistryTest 13 extends PlexusTestCase 14 { 15 public void testRegistry() throws Exception 16 { 17 TypeMappingRegistry reg = (TypeMappingRegistry) lookup( TypeMappingRegistry.ROLE ); 18 19 assertNotNull(reg); 20 21 TypeMapping tm = reg.getTypeMapping(SoapConstants.XSD); 22 23 assertNotNull(tm); 24 25 assertNotNull(tm.getType(String.class)); 26 assertNotNull(tm.getType(Integer.class)); 27 assertNotNull(tm.getType(int.class)); 28 } 29 }