use of org.eclipse.emfcloud.modelserver.emf.common.codecs.JsonCodecV2 in project emfcloud-modelserver by eclipse-emfcloud.
the class ModelServerClientV2Test method before.
@Before
public void before() {
interceptor = new MockInterceptor();
jsonCodec = new JsonCodecV2();
baseHttpUrlBuilder = new HttpUrl.Builder().scheme("http").host("fake-url.com").addPathSegment("api").addPathSegment("v2");
eClass = EcoreFactory.eINSTANCE.createEClass();
eClass.setName("AbstractTestClass");
eClass.setAbstract(true);
}
use of org.eclipse.emfcloud.modelserver.emf.common.codecs.JsonCodecV2 in project emfcloud-modelserver by eclipse-emfcloud.
the class EObjectSubscriptionListenerTest method createFixture.
//
// Test framework
//
@Before
public void createFixture() {
codec = new JsonCodecV2();
EClass rootClass = EcorePackage.Literals.EPACKAGE;
EObjectSubscriptionListener listener = new EObjectSubscriptionListener(codec);
listener.setAPIVersion(API_V2);
listener.setModelTypeSupplier(Suppliers.ofInstance(rootClass));
fixture = spy(listener);
}
use of org.eclipse.emfcloud.modelserver.emf.common.codecs.JsonCodecV2 in project emfcloud-modelserver by eclipse-emfcloud.
the class ModelServerClientTest method before.
@Before
public void before() {
interceptor = new MockInterceptor();
jsonCodec = new JsonCodecV2();
baseHttpUrlBuilder = new HttpUrl.Builder().scheme("http").host("fake-url.com").addPathSegment("api").addPathSegment("v2");
eClass = EcoreFactory.eINSTANCE.createEClass();
eClass.setName("AbstractTestClass");
eClass.setAbstract(true);
}
Aggregations