Examples of CustomTypeMapping


Examples of org.codehaus.xfire.aegis.type.CustomTypeMapping

    public void testBestMatch() throws Exception
    {
        XMLTypeCreator creator = new XMLTypeCreator();
        creator.setNextCreator(new DefaultTypeCreator());
        creator.setConfiguration(new Configuration());
        tm = new CustomTypeMapping(new DefaultTypeMappingRegistry().createDefaultMappings());
        creator.setTypeMapping(tm);
        Method method = MyService1.class.getDeclaredMethod("getCollection", new Class[0]);
        Type type = creator.createType(method, -1);
        assertTrue("type is not a collection", type instanceof CollectionType);
        assertEquals("unexpected collection return type for method " + method, Double.class, ((CollectionType)type).getComponentType().getTypeClass());
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.CustomTypeMapping

    public void setUp() throws Exception
    {
        super.setUp();
       
        tm = new CustomTypeMapping();
        creator = new Java5TypeCreator();
        creator.setNextCreator(new DefaultTypeCreator());
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
    }
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.CustomTypeMapping

   
    public void setUp() throws Exception
    {
        super.setUp();
       
        tm = new CustomTypeMapping();
        Java5TypeCreator creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
    }
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.CustomTypeMapping

    public void setUp() throws Exception
    {
        super.setUp();
       
        tm = new CustomTypeMapping();
        creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
    }
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.CustomTypeMapping

        assertTrue(type.getTypeClass().isAssignableFrom(Integer.class));
    }

    public void testMapDTO()
    {
        CustomTypeMapping tm = new CustomTypeMapping();
        Java5TypeCreator creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
       
        Type dto = creator.createType(MapDTO.class);
        Set deps = dto.getDependencies();
       
        Type type = (Type) deps.iterator().next();
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.CustomTypeMapping

    public void setUp() throws Exception
    {
        super.setUp();
       
        tm = new CustomTypeMapping();
        creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
    }
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.CustomTypeMapping

        assertTrue(type.getTypeClass().isAssignableFrom(String.class));
    }

    public void testCollectionDTO()
    {
        CustomTypeMapping tm = new CustomTypeMapping();
        Java5TypeCreator creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
       
        Type dto = creator.createType(CollectionDTO.class);
        Set deps = dto.getDependencies();
       
        Type type = (Type) deps.iterator().next();
View Full Code Here

Examples of org.codehaus.xfire.aegis.type.CustomTypeMapping

        assertEquals(String.class, comType.getTypeClass());
    }

    public void testObjectDTO()
    {
        CustomTypeMapping tm = new CustomTypeMapping();
        Java5TypeCreator creator = new Java5TypeCreator();
        creator.setConfiguration(new Configuration());
        tm.setTypeCreator(creator);
       
        Type dto = creator.createType(ObjectDTO.class);
        Set deps = dto.getDependencies();
                              
        assertFalse( deps.isEmpty() );
View Full Code Here
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.