From 072a9c9c8d0d9b4a9637104718ef87236852e0dd Mon Sep 17 00:00:00 2001 From: yegor256 Date: Thu, 15 Jun 2017 09:12:31 +0300 Subject: [PATCH] extra test --- src/test/java/org/cactoos/io/UrlAsInputTest.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/test/java/org/cactoos/io/UrlAsInputTest.java b/src/test/java/org/cactoos/io/UrlAsInputTest.java index 17802fc98c..a4157084be 100644 --- a/src/test/java/org/cactoos/io/UrlAsInputTest.java +++ b/src/test/java/org/cactoos/io/UrlAsInputTest.java @@ -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("