Package com.oldratlee.cooma.ext3

Examples of com.oldratlee.cooma.ext3.Ext3


        }
    }
   
    @Test
    public void test_getAdaptiveExtension_protocolKey() throws Exception {
        Ext3 ext = ExtensionLoader.getExtensionLoader(Ext3.class).getAdaptiveExtension();
   
        Config config = Config.fromKv("protocol", "impl3", "host", "1.2.3.4", "port", "1010", "path", "path1");

        String echo = ext.echo(config, "s");
        assertEquals("Ext3Impl3-echo", echo);
   
        config = config.addConfig("key1", "impl2");
        echo = ext.echo(config, "s");
        assertEquals("Ext3Impl2-echo", echo);
       
        String yell = ext.yell(config, "d");
        assertEquals("Ext3Impl3-yell", yell);
    }
View Full Code Here

TOP

Related Classes of com.oldratlee.cooma.ext3.Ext3

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.