Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
some tests for Image class
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlep committed Apr 6, 2018
1 parent 7216778 commit e130953
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/test/java/eu/transkribus/interfaces/types/ImageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void testReaders() throws IOException {

}

@Test
// @Test
public void testFromUrlToOpenCv() throws IOException {
logger.debug("testFromUrlToOpenCv");

Expand All @@ -42,5 +42,21 @@ public void testFromUrlToOpenCv() throws IOException {
}

}


@Test
public void testFromUrlToBufferedImage() throws IOException {
logger.debug("testFromUrlToBufferedImage");

URL[] urls = {
new URL("https://dbis-thure.uibk.ac.at/f/Get?fileType=orig&id=VJCQMQBNZFDFCZMAJZHKNJKW") };

for (URL url : urls) {
Image img = new Image(url);
img.createType(Type.JAVA);

logger.info("Created java image for url: " + url);
}

}
}

0 comments on commit e130953

Please sign in to comment.