Search in sources :

Example 1 with SimpleExtImpl1

use of com.alibaba.dubbo.common.extensionloader.ext1.impl.SimpleExtImpl1 in project dubbo by alibaba.

the class ExtensionLoaderTest method test_getDefaultExtension.

@Test
public void test_getDefaultExtension() throws Exception {
    SimpleExt ext = ExtensionLoader.getExtensionLoader(SimpleExt.class).getDefaultExtension();
    assertThat(ext, instanceOf(SimpleExtImpl1.class));
    String name = ExtensionLoader.getExtensionLoader(SimpleExt.class).getDefaultExtensionName();
    assertEquals("impl1", name);
}
Also used : SimpleExtImpl1(com.alibaba.dubbo.common.extensionloader.ext1.impl.SimpleExtImpl1) JUnitMatchers.containsString(org.junit.matchers.JUnitMatchers.containsString) SimpleExt(com.alibaba.dubbo.common.extensionloader.ext1.SimpleExt) Test(org.junit.Test)

Aggregations

SimpleExt (com.alibaba.dubbo.common.extensionloader.ext1.SimpleExt)1 SimpleExtImpl1 (com.alibaba.dubbo.common.extensionloader.ext1.impl.SimpleExtImpl1)1 Test (org.junit.Test)1 JUnitMatchers.containsString (org.junit.matchers.JUnitMatchers.containsString)1