Skip to content

Commit

Permalink
Get image format (#80)
Browse files Browse the repository at this point in the history
* Add method to get format from images
* Add test
  • Loading branch information
Rdornier authored Feb 23, 2024
1 parent ec8d569 commit 1548d8d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/fr/igred/omero/repository/ImageWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,16 @@ public Timestamp getAcquisitionDate() {
}


/**
* Returns the format of the image.
*
* @return See above.
*/
public String getFormat() {
return data.getFormat();
}


/**
* Returns the type of annotation link for this object.
*
Expand Down
6 changes: 6 additions & 0 deletions src/test/java/fr/igred/omero/repository/ImageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,12 @@ void testGetAcquisitionDate() throws Exception {
}


@Test
void testGetFormat() throws Exception {
assertEquals("Fake", client.getImage(IMAGE1.id).getFormat());
}


@Test
void testGetChannel() throws Exception {
ChannelWrapper channel = client.getImage(IMAGE1.id).getChannels(client).get(0);
Expand Down

0 comments on commit 1548d8d

Please sign in to comment.