Skip to content

Commit

Permalink
add test for the contained references problem
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Feb 15, 2024
1 parent bb759ae commit e9fa91b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/java/org/ivoa/dm/proposal/prop/EmerlinExampleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,18 @@ public void testListupdate() {

}

@org.junit.jupiter.api.Test
public void testCopy() {

ProposalModel model = new ProposalModel();
model.createContext();
final ObservingProposal proposal = ex.getProposal();
final ObservingProposal cprop = new ObservingProposal(proposal);
cprop.updateClonedReferences();
proposal.observations.get(0).target.sourceName="changed";
assertEquals("fictional", cprop.observations.get(0).target.sourceName);

}



Expand Down

0 comments on commit e9fa91b

Please sign in to comment.