Package org.openengsb.core.ekb.common.models

Examples of org.openengsb.core.ekb.common.models.EngineeringObjectModel


        assertThat(mChild4.getId(), is("child4"));
    }

    @Test
    public void testIfEngineeringObjectInformationIsAdded_shouldAddEOInformation() throws Exception {
        EngineeringObjectModel model = new EngineeringObjectModel();
        model.setModelAId("testReferenceToModelA");
        model.setModelBId("testReferenceToModelB");

        List<EDBObject> objects = converter.convertModelToEDBObject(model, getTestConnectorInformation());
        assertThat(objects.size(), is(1));
        EDBObject result = objects.get(0);
        String key1 = getReferenceString(model.getClass(), "modelAId");
        String key2 = getReferenceString(model.getClass(), "modelBId");
        assertThat(result.getString(key1), is(CONTEXT_ID + "/testReferenceToModelA"));
        assertThat(result.getString(key2), is(CONTEXT_ID + "/testReferenceToModelB"));
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.ekb.common.models.EngineeringObjectModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.