mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 04:23:13 +00:00
Rename leftwardLabel and rightwardLabel
Renamed the leftwardLabel and rightwardlabel for Relationship to leftwardValue and rightwardValue. Renamed the same values for RelationshipType to leftwardType and rightwardType.
This commit is contained in:
@@ -84,12 +84,12 @@ public class RelationshipServiceImplTest {
|
||||
RelationshipType hasDog = new RelationshipType();
|
||||
RelationshipType hasFather = new RelationshipType();
|
||||
RelationshipType hasMother = new RelationshipType();
|
||||
hasDog.setLeftwardLabel("hasDog");
|
||||
hasDog.setRightwardLabel("isDogOf");
|
||||
hasFather.setLeftwardLabel("hasFather");
|
||||
hasFather.setRightwardLabel("isFatherOf");
|
||||
hasMother.setLeftwardLabel("hasMother");
|
||||
hasMother.setRightwardLabel("isMotherOf");
|
||||
hasDog.setLeftwardType("hasDog");
|
||||
hasDog.setRightwardType("isDogOf");
|
||||
hasFather.setLeftwardType("hasFather");
|
||||
hasFather.setRightwardType("isFatherOf");
|
||||
hasMother.setLeftwardType("hasMother");
|
||||
hasMother.setRightwardType("isMotherOf");
|
||||
|
||||
relationshipTest.add(getRelationship(cindy, spot, hasDog,0,0));
|
||||
relationshipTest.add(getRelationship(cindy, jasper, hasDog,0,1));
|
||||
@@ -194,8 +194,8 @@ public class RelationshipServiceImplTest {
|
||||
EntityType rightEntityType = mock(EntityType.class);
|
||||
testRel.setLeftType(leftEntityType);
|
||||
testRel.setRightType(rightEntityType);
|
||||
testRel.setLeftwardLabel("Entitylabel");
|
||||
testRel.setRightwardLabel("Entitylabel");
|
||||
testRel.setLeftwardType("Entitylabel");
|
||||
testRel.setRightwardType("Entitylabel");
|
||||
metsList.add(metVal);
|
||||
relationship = getRelationship(leftItem, rightItem, testRel, 0,0);
|
||||
leftTypelist.add(relationship);
|
||||
@@ -247,8 +247,8 @@ public class RelationshipServiceImplTest {
|
||||
EntityType rightEntityType = mock(EntityType.class);
|
||||
testRel.setLeftType(leftEntityType);
|
||||
testRel.setRightType(rightEntityType);
|
||||
testRel.setLeftwardLabel("Entitylabel");
|
||||
testRel.setRightwardLabel("Entitylabel");
|
||||
testRel.setLeftwardType("Entitylabel");
|
||||
testRel.setRightwardType("Entitylabel");
|
||||
testRel.setLeftMinCardinality(0);
|
||||
testRel.setRightMinCardinality(0);
|
||||
metsList.add(metVal);
|
||||
@@ -299,8 +299,8 @@ public class RelationshipServiceImplTest {
|
||||
EntityType rightEntityType = mock(EntityType.class);
|
||||
testRel.setLeftType(leftEntityType);
|
||||
testRel.setRightType(rightEntityType);
|
||||
testRel.setLeftwardLabel("Entitylabel");
|
||||
testRel.setRightwardLabel("Entitylabel");
|
||||
testRel.setLeftwardType("Entitylabel");
|
||||
testRel.setRightwardType("Entitylabel");
|
||||
testRel.setLeftMinCardinality(0);
|
||||
testRel.setRightMinCardinality(0);
|
||||
metsList.add(metVal);
|
||||
|
Reference in New Issue
Block a user