From 689954436f95e1c9a97cf018d965a9cf075a0d02 Mon Sep 17 00:00:00 2001 From: Pierre Pouchin Date: Sat, 23 Sep 2023 10:04:54 +0200 Subject: [PATCH] Improve code coverage for isLinked method --- src/test/java/fr/igred/omero/repository/ImageTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/fr/igred/omero/repository/ImageTest.java b/src/test/java/fr/igred/omero/repository/ImageTest.java index 4a950e46..789d59f3 100644 --- a/src/test/java/fr/igred/omero/repository/ImageTest.java +++ b/src/test/java/fr/igred/omero/repository/ImageTest.java @@ -500,11 +500,14 @@ void testAddAndRemoveTagFromImage() throws Exception { List tags = image.getTags(client); image.unlink(client, tag); + boolean linked = image.isLinked(client, tag); + List removed = image.getTags(client); client.delete(tag); assertEquals(1, tags.size()); assertEquals(0, removed.size()); + assertFalse(linked); }