Skip to content
Snippets Groups Projects
Commit 2052caa7 authored by Simon Skoczylas's avatar Simon Skoczylas :dizzy:
Browse files

Bug 561943 - NodeProvider - Finalize merge and update test


Change-Id: I06d66429ae114817a06aa208df28a4ea7451ef4d
Signed-off-by: default avatarSimon Skoczylas <simon.skoczylas@karakun.com>
parent 668e89c4
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ import java.util.stream.Collectors;
import org.eclipse.mdm.api.base.adapter.Attribute;
import org.eclipse.mdm.api.base.adapter.EntityType;
import org.eclipse.mdm.api.base.adapter.Relation;
import org.eclipse.mdm.api.base.model.ContextType;
import org.eclipse.mdm.api.base.model.Value;
import org.eclipse.mdm.api.base.model.ValueType;
import org.eclipse.mdm.api.base.query.DataAccessException;
......@@ -42,10 +44,16 @@ public class MergedSearchQueryTest {
idAttribute = mock(Attribute.class);
doReturn(ID_NAME).when(idAttribute).getName();
Relation fooParentRelation = mock(Relation.class);
doReturn(ContextType.UNITUNDERTEST.typeName()).when(fooParentRelation).getName();
fooEntityType = mock(EntityType.class, "Foo");
doReturn(Collections.singletonList(fooParentRelation)).when(fooEntityType).getParentRelations();
doReturn(idAttribute).when(fooEntityType).getIDAttribute();
Relation barParentRelation = mock(Relation.class);
doReturn(ContextType.UNITUNDERTEST.typeName()).when(barParentRelation).getName();
barEntityType = mock(EntityType.class, "Bar");
doReturn(Collections.singletonList(barParentRelation)).when(barEntityType).getParentRelations();
doReturn(idAttribute).when(barEntityType).getIDAttribute();
aAttribute = mock(Attribute.class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment