Open k0r opened 9 years ago
updated
following test case in TkAppTest.java had to be commented out
public void returnsStaticImage() throws Exception {
final String name = "/images/logo.png";
new FtRemote(new TkApp(new MkBase())).exec(
new FtRemote.Script() {
@Override
public void exec(final URI home) throws IOException {
MatcherAssert.assertThat(
new JdkRequest(home)
.uri().path(name)
.back()
.fetch()
.as(RestResponse.class)
.assertStatus(HttpURLConnection.HTTP_OK)
.assertHeader("Content-Type", "image/png")
.binary(),
Matchers.is(
IOUtils.toByteArray(
TkAppTest.class.getResource(name)
)
)
);
}
}
);
}
because the build wouldn't pass travis-ci
[ERROR] /src/main/resources/images/logo.png: Line has trailing spaces. (RegexpSinglelineCheck)
new logo and file panel update