com.alibaba.dubbo.config.spring.filter.MockFilter Java Examples
The following examples show how to use
com.alibaba.dubbo.config.spring.filter.MockFilter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfigTest.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
@Test public void testSpringExtensionInject() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(ConfigTest.class.getPackage().getName().replace('.', '/') + "/spring-extension-inject.xml"); ctx.start(); try { MockFilter filter = (MockFilter) ExtensionLoader.getExtensionLoader(Filter.class).getExtension("mymock"); assertNotNull(filter.getMockDao()); assertNotNull(filter.getProtocol()); assertNotNull(filter.getLoadBalance()); } finally { ctx.stop(); ctx.close(); } }
Example #2
Source File: ConfigTest.java From dubbox with Apache License 2.0 | 5 votes |
@Test public void testSpringExtensionInject() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(ConfigTest.class.getPackage().getName().replace('.', '/') + "/spring-extension-inject.xml"); ctx.start(); try { MockFilter filter = (MockFilter) ExtensionLoader.getExtensionLoader(Filter.class).getExtension("mymock"); assertNotNull(filter.getMockDao()); assertNotNull(filter.getProtocol()); assertNotNull(filter.getLoadBalance()); } finally { ctx.stop(); ctx.close(); } }
Example #3
Source File: ConfigTest.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
@Test public void testSpringExtensionInject() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(ConfigTest.class.getPackage().getName().replace('.', '/') + "/spring-extension-inject.xml"); ctx.start(); try { MockFilter filter = (MockFilter) ExtensionLoader.getExtensionLoader(Filter.class).getExtension("mymock"); assertNotNull(filter.getMockDao()); assertNotNull(filter.getProtocol()); assertNotNull(filter.getLoadBalance()); } finally { ctx.stop(); ctx.close(); } }
Example #4
Source File: ConfigTest.java From dubbo3 with Apache License 2.0 | 5 votes |
@Test public void testSpringExtensionInject() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(ConfigTest.class.getPackage().getName().replace('.', '/') + "/spring-extension-inject.xml"); ctx.start(); try { MockFilter filter = (MockFilter) ExtensionLoader.getExtensionLoader(Filter.class).getExtension("mymock"); assertNotNull(filter.getMockDao()); assertNotNull(filter.getProtocol()); assertNotNull(filter.getLoadBalance()); } finally { ctx.stop(); ctx.close(); } }
Example #5
Source File: ConfigTest.java From dubbox with Apache License 2.0 | 5 votes |
@Test public void testSpringExtensionInject() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(ConfigTest.class.getPackage().getName().replace('.', '/') + "/spring-extension-inject.xml"); ctx.start(); try { MockFilter filter = (MockFilter) ExtensionLoader.getExtensionLoader(Filter.class).getExtension("mymock"); assertNotNull(filter.getMockDao()); assertNotNull(filter.getProtocol()); assertNotNull(filter.getLoadBalance()); } finally { ctx.stop(); ctx.close(); } }
Example #6
Source File: ConfigTest.java From dubbox with Apache License 2.0 | 5 votes |
@Test public void testSpringExtensionInject() { ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(ConfigTest.class.getPackage().getName().replace('.', '/') + "/spring-extension-inject.xml"); ctx.start(); try { MockFilter filter = (MockFilter) ExtensionLoader.getExtensionLoader(Filter.class).getExtension("mymock"); assertNotNull(filter.getMockDao()); assertNotNull(filter.getProtocol()); assertNotNull(filter.getLoadBalance()); } finally { ctx.stop(); ctx.close(); } }