Search in sources :

Example 11 with ServiceRegistry

use of org.apache.servicecomb.serviceregistry.ServiceRegistry in project incubator-servicecomb-java-chassis by apache.

the class TestInvocationFactory method setUp.

@BeforeClass
public static void setUp() {
    ServiceRegistry serviceRegistry = ServiceRegistryFactory.createLocal();
    serviceRegistry.init();
    RegistryUtils.setServiceRegistry(serviceRegistry);
}
Also used : ServiceRegistry(org.apache.servicecomb.serviceregistry.ServiceRegistry) BeforeClass(org.junit.BeforeClass)

Aggregations

ServiceRegistry (org.apache.servicecomb.serviceregistry.ServiceRegistry)11 Test (org.junit.Test)7 SchemaMeta (org.apache.servicecomb.core.definition.SchemaMeta)4 BeforeClass (org.junit.BeforeClass)4 Invocation (org.apache.servicecomb.core.Invocation)3 UnitTestMeta (org.apache.servicecomb.core.unittest.UnitTestMeta)3 Microservice (org.apache.servicecomb.serviceregistry.api.registry.Microservice)3 EventBus (com.google.common.eventbus.EventBus)2 Holder (javax.xml.ws.Holder)2 MicroserviceMetaManager (org.apache.servicecomb.core.definition.MicroserviceMetaManager)2 OperationMeta (org.apache.servicecomb.core.definition.OperationMeta)2 SchemaLoader (org.apache.servicecomb.core.definition.loader.SchemaLoader)2 ByteBuf (io.netty.buffer.ByteBuf)1 Buffer (io.vertx.core.buffer.Buffer)1 ByteBuffer (java.nio.ByteBuffer)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 CompletableFuture (java.util.concurrent.CompletableFuture)1 Executor (java.util.concurrent.Executor)1 Expectations (mockit.Expectations)1