thachlp commented on code in PR #630:
URL: https://github.com/apache/commons-io/pull/630#discussion_r1623321060


##########
src/test/java/org/apache/commons/io/build/URIOriginTest.java:
##########
@@ -35,4 +39,21 @@ public void beforeEach() {
         setOriginRw(new URIOrigin(Paths.get(FILE_NAME_RW).toUri()));
     }
 
+    @Test
+    void testGetInputStreamHttpURI() throws Exception {
+        final String uri = "https://example.com";;
+        final AbstractOrigin.URIOrigin origin = new 
AbstractOrigin.URIOrigin(new URI(uri));
+        try (final InputStream in = origin.getInputStream()) {
+            assertNotEquals(-1, in.read());
+        }
+    }
+
+    @Test
+    void testGetInputStreamHttps() throws Exception {
+        final String uri = "https://example.com";;
+        final AbstractOrigin.URIOrigin origin = new 
AbstractOrigin.URIOrigin(new URI(uri));
+        try (final InputStream in = origin.getInputStream()) {
+            assertNotEquals(-1, in.read());
+        }
+    }

Review Comment:
   Yes, updated



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to