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