Package org.openengsb.domain.example.model

Examples of org.openengsb.domain.example.model.EOModel


    @Test
    public void testIfUpdatePropagationWithMissingModelsWorks_shouldUpdateExistingModels() throws Exception {
        SourceModelB sourceB = new SourceModelB("sourceB/9", "sourceNameB", "shared");
        persist.commit(getTestEKBCommit().addInsert(sourceB));

        EOModel eo = new EOModel("eo/9", "this/does/not/exist", sourceB.getEdbId(), "shared");
        persist.commit(getTestEKBCommit().addInsert(eo));

        eo = query.getModel(EOModel.class, getModelOid(eo.getEdbId()));
        eo.setNameB("updatedNameB");
        eo.setShared("updatedShared");
        persist.commit(getTestEKBCommit().addUpdate(eo));

        sourceB = query.getModel(SourceModelB.class, getModelOid(sourceB.getEdbId()));
        assertThat(sourceB.getName(), is("updatedNameB"));
        assertThat(sourceB.getShared(), is("updatedShared"));
View Full Code Here

TOP

Related Classes of org.openengsb.domain.example.model.EOModel

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.