Examples of retrieveInternalModelIdName()


Examples of org.openengsb.core.api.model.ModelWrapper.retrieveInternalModelIdName()

        List<OpenEngSBModelEntry> entries = wrapper.toOpenEngSBModelEntries();
        assertThat((String) getEntryByName(entries, "id"), is("testId"));
        assertThat((String) getEntryByName(entries, "name"), is("testName"));
        assertThat((String) getEntryByName(entries, "child"), is("testChild"));
        assertThat((String) wrapper.retrieveInternalModelId(), is("testId"));
        assertThat((String) wrapper.retrieveInternalModelIdName(), is("id"));
    }
   
    @Test
    public void testIfRetrieveModelNameWork_shouldReturnModelName() throws Exception {
        ModelWrapper wrapper = ModelWrapper.wrap(new TestModel());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.