Skip to content

Commit

Permalink
Update a test that does is invalid now (#13).
Browse files Browse the repository at this point in the history
/assets/ return the asset list page.

Signed-off-by: Clement Escoffier <[email protected]>
  • Loading branch information
cescoffier committed Jul 1, 2014
1 parent d41e3af commit 510b8ff
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions framework/integration-tests/src/test/java/asset/AssetIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ public void testMissingAssets() throws Exception {
}

@Test
public void testThatTheAssetsDirectoryIsNotFound() throws Exception {
HttpResponse<InputStream> response = get("/assets").asBinary();
assertThat(response.code()).isEqualTo(NOT_FOUND);

response = get("/assets/").asBinary();
assertThat(response.code()).isEqualTo(NOT_FOUND);
public void testThatTheAssetsDirectoryIsTheAssetListPage() throws Exception {
HttpResponse<String> response = get("/assets").asString();
assertThat(response.code()).isEqualTo(OK);
assertThat(response.body()).contains("Available Assets");
}

@Test
Expand Down

0 comments on commit 510b8ff

Please sign in to comment.