Package org.apache.camel.osgi.test

Examples of org.apache.camel.osgi.test.MockTypeConverterRegistry


public class OsgiAnnotationTypeConverterLoaderTest extends CamelOsgiTestSupport {
   
    @Test
    public void testLoad() throws Exception {              
        OsgiAnnotationTypeConverterLoader loader = new OsgiAnnotationTypeConverterLoader(getPackageScanClassResolver());
        MockTypeConverterRegistry registry = new MockTypeConverterRegistry();
        loader.load(registry);
        assertTrue("There should have at lest one fallback converter", registry.getFallbackTypeConverters().size() >= 1);       
        assertTrue("There should have at lest one converter", registry.getTypeConverters().size() >= 1);
    }
View Full Code Here


public class OsgiAnnotationTypeConverterLoaderTest extends CamelOsgiTestSupport {
   
    @Test
    public void testLoad() throws Exception {              
        OsgiAnnotationTypeConverterLoader loader = new OsgiAnnotationTypeConverterLoader(getResolver());
        MockTypeConverterRegistry registry = new MockTypeConverterRegistry();
        loader.load(registry);
        assertTrue("There should have at lest one fallback converter", registry.getFallbackTypeConverters().size() >= 1);       
        assertTrue("There should have at lest one coverter", registry.getTypeConverters().size() >= 1);
    }
View Full Code Here

public class OsgiAnnotationTypeConverterLoaderTest extends CamelOsgiTestSupport {
   
    @Test
    public void testLoad() throws Exception {              
        OsgiAnnotationTypeConverterLoader loader = new OsgiAnnotationTypeConverterLoader(getResolver());
        MockTypeConverterRegistry registry = new MockTypeConverterRegistry();
        loader.load(registry);
        assertTrue("There should have at lest one fallback converter", registry.getFallbackTypeConverters().size() >= 1);       
        assertTrue("There should have at lest one converter", registry.getTypeConverters().size() >= 1);
    }
View Full Code Here

public class OsgiAnnotationTypeConverterLoaderTest extends CamelOsgiTestSupport {
   
    public void testLoad() throws Exception {
        OsgiAnnotationTypeConverterLoader loader = new OsgiAnnotationTypeConverterLoader(getBundleContext());
        MockTypeConverterRegistry registry = new MockTypeConverterRegistry();
        loader.load(registry);       
        assertTrue("There should have at lest one coverter", registry.getTypeConverters().size() >= 1);      
    }
View Full Code Here

public class OsgiAnnotationTypeConverterLoaderTest extends CamelOsgiTestSupport {
   
    public void testLoad() throws Exception {              
        OsgiAnnotationTypeConverterLoader loader = new OsgiAnnotationTypeConverterLoader(getResolver());
        MockTypeConverterRegistry registry = new MockTypeConverterRegistry();
        loader.load(registry);
        assertTrue("There should have at lest one fallback converter", registry.getFallbackTypeConverters().size() >= 1);       
        assertTrue("There should have at lest one coverter", registry.getTypeConverters().size() >= 1);
    }
View Full Code Here

public class OsgiAnnotationTypeConverterLoaderTest extends CamelOsgiTestSupport {
   
    public void testLoad() throws Exception {
        OsgiAnnotationTypeConverterLoader loader = new OsgiAnnotationTypeConverterLoader(getResolver());
        MockTypeConverterRegistry registry = new MockTypeConverterRegistry();
        loader.load(registry);
        assertEquals("There should have a fallback converter", registry.getFallbackTypeConverters().size(), 1);
        assertEquals("There should have a coverter", registry.getTypeConverters().size(), 1);
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.osgi.test.MockTypeConverterRegistry

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.