use of com.alipay.sofa.ark.container.registry.ArkContainerServiceProvider in project sofa-ark by alipay.
the class RegistryServiceTest method testContainerService.
@Test
public void testContainerService() {
registryService.publishService(ITest.class, new TestObjectA(), new ArkContainerServiceProvider("test1", 20000));
registryService.publishService(ITest.class, new TestObjectB(), new ArkContainerServiceProvider("test2", 100));
registryService.publishService(ITest.class, new TestObjectC());
Assert.assertEquals(TestObjectB.OUTPUT, registryService.referenceService(ITest.class).getService().test());
Assert.assertEquals(3, registryService.referenceServices(ITest.class).size());
}
Aggregations