Permalink
Browse files

added comment check for imageinfo in QueryTests, renamed txt -> json

  • Loading branch information...
fastily committed Sep 11, 2017
1 parent ef21b9d commit 285e33e4b00a51916f05deb0d40bce11d01518f8
@@ -2,9 +2,6 @@ dist: trusty
sudo: false
language: java
jdk:
- openjdk8
notifications:
email: false
@@ -117,7 +117,7 @@ protected void addResponse(String fn)
try
{
server.enqueue(new MockResponse()
.setBody(String.join("\n", Files.readAllLines(Paths.get(getClass().getResource(fn + ".txt").toURI())))));
.setBody(String.join("\n", Files.readAllLines(Paths.get(getClass().getResource(fn + ".json").toURI())))));
}
catch (Throwable e)
{
@@ -257,6 +257,7 @@ public void testGetImageInfo()
assertEquals("275e96b2660f761cca02b8d2cb5425bcaab4dd98", result.sha1);
assertEquals("image/svg+xml", result.mime);
assertEquals("https://upload.wikimedia.org/wikipedia/test/f/f7/FastilyTest.svg", result.url.toString());
assertEquals("part of unit test for jwiki", result.summary);
}
/**

0 comments on commit 285e33e

Please sign in to comment.