Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 15, 2017
1 parent 0fc720a commit 072a9c9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test/java/org/cactoos/io/UrlAsInputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,20 @@ public void readsRealUrl() throws IOException {
);
}

@Test
public void readsHttpsUrl() {
MatcherAssert.assertThat(
"Can't fetch bytes from the HTTPS URL",
new BytesAsText(
new InputAsBytes(
new UrlAsInput(
// @checkstyle LineLength (1 line)
"https://raw.githubusercontent.com/yegor256/cactoos/0.5/pom.xml"
)
)
),
new TextHasString(Matchers.containsString("<project"))
);
}

}

0 comments on commit 072a9c9

Please sign in to comment.