Skip to content

Commit

Permalink
Improve code coverage for isLinked method
Browse files Browse the repository at this point in the history
  • Loading branch information
ppouchin committed Sep 23, 2023
1 parent 33bac4f commit 6899544
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/fr/igred/omero/repository/ImageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,14 @@ void testAddAndRemoveTagFromImage() throws Exception {

List<TagAnnotationWrapper> tags = image.getTags(client);
image.unlink(client, tag);
boolean linked = image.isLinked(client, tag);

List<TagAnnotationWrapper> removed = image.getTags(client);
client.delete(tag);

assertEquals(1, tags.size());
assertEquals(0, removed.size());
assertFalse(linked);
}


Expand Down

0 comments on commit 6899544

Please sign in to comment.