Package org.castor.core

Examples of org.castor.core.CoreConfiguration


* UTF test case for {@see org.castor.jdo.drivers.PointbaseFactory}.
*/
public class TestMappingLoaderRegistry extends TestCase {

    public final void testGetInstance() throws Exception {
        Configuration config = new CoreConfiguration();
        MappingLoaderRegistry registry = new MappingLoaderRegistry(config);
        assertNotNull(registry);
    }
View Full Code Here


        MappingLoaderRegistry registry = new MappingLoaderRegistry(config);
        assertNotNull(registry);
    }

    public final void testEnlistMappingLoaders() throws Exception {
        Configuration config = new CoreConfiguration();
        MappingLoaderRegistry registry = new MappingLoaderRegistry(config);
        assertNotNull(registry);

        Collection factories = registry.getMappingLoaderFactories();
        assertNotNull(factories);
View Full Code Here

        assertEquals("CastorXmlMapping", factory.getSourceType());

    }

    public final void testGetXMLMappingLoader() throws Exception {
        Configuration config = new CoreConfiguration();
        MappingLoaderRegistry registry = new MappingLoaderRegistry(config);
        assertNotNull(registry);

        MappingLoader mappingLoader = registry.getMappingLoader(
                "CastorXmlMapping", BindingType.XML);
View Full Code Here

TOP

Related Classes of org.castor.core.CoreConfiguration

Copyright © 2018 www.massapicom. 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.