Import normalizer: offline tool to normalize the raw archive spreadsheets #663
@@ -144,10 +144,12 @@ class RelationshipServiceIntegrationTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void setFamilyMember_true_makes_person_appear_in_network() {
|
void setFamilyMember_true_makes_person_appear_in_network() {
|
||||||
// charlie starts with familyMember = false. Add a PARENT_OF edge alice→charlie
|
// addRelationship side-effects family_member=true on both endpoints for family-graph
|
||||||
// so the edge exists, then flip charlie's flag and verify he appears in nodes.
|
// edges (PARENT_OF/SPOUSE_OF/SIBLING_OF). Reset charlie so the explicit
|
||||||
|
// setFamilyMember(true) call below is the thing under test, not the auto-flip.
|
||||||
relationshipService.addRelationship(alice.getId(),
|
relationshipService.addRelationship(alice.getId(),
|
||||||
new CreateRelationshipRequest(charlie.getId(), RelationType.PARENT_OF, null, null, null));
|
new CreateRelationshipRequest(charlie.getId(), RelationType.PARENT_OF, null, null, null));
|
||||||
|
relationshipService.setFamilyMember(charlie.getId(), false);
|
||||||
|
|
||||||
NetworkDTO before = relationshipService.getFamilyNetwork();
|
NetworkDTO before = relationshipService.getFamilyNetwork();
|
||||||
assertThat(before.nodes()).extracting("id").doesNotContain(charlie.getId());
|
assertThat(before.nodes()).extracting("id").doesNotContain(charlie.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user