Package org.codehaus.xfire.plexus.type

Source Code of org.codehaus.xfire.plexus.type.TypeMappingRegistryTest

package org.codehaus.xfire.plexus.type;

import org.codehaus.plexus.PlexusTestCase;
import org.codehaus.xfire.aegis.type.TypeMapping;
import org.codehaus.xfire.plexus.type.TypeMappingRegistry;
import org.codehaus.xfire.soap.SoapConstants;

/**
* @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
* @since Nov 9, 2004
*/
public class TypeMappingRegistryTest
    extends PlexusTestCase
{
    public void testRegistry() throws Exception
    {
        TypeMappingRegistry reg = (TypeMappingRegistry) lookup( TypeMappingRegistry.ROLE );
       
        assertNotNull(reg);
       
        TypeMapping tm = reg.getTypeMapping(SoapConstants.XSD);
       
        assertNotNull(tm);
       
        assertNotNull(tm.getType(String.class));
        assertNotNull(tm.getType(Integer.class));
        assertNotNull(tm.getType(int.class));
    }
}
TOP

Related Classes of org.codehaus.xfire.plexus.type.TypeMappingRegistryTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.