src/test/java/org/jsoup/helper/HttpConnectionTest.java
/* most actual network http connection tests are in integration */
most actual network http connection tests are in integration
most actual network http connection tests are in integration
@Test public void canCreateEmptyConnection() {
        HttpConnection con = new HttpConnection();
        assertEquals(Connection.Method.GET, con.request().method());
        assertThrows(IllegalArgumentException.class, () -> {
            URL url = con.request().url();
        });
    }
@ Test public void canCreateEmptyConnection ( ) { HttpConnection con = new HttpConnection ( ) ; assertEquals ( Connection . Method . GET , con . request ( ) . method ( ) ) ; assertThrows ( IllegalArgumentException . class , ( ) -> { URL url = con . request ( ) . url ( ) ; } ) ; }
most actual network http connection tests are in integration
most actual network http connection tests are in integration