File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/test/java/com/saasquatch/jsonschemainferrer Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 44import static com .saasquatch .jsonschemainferrer .TestJunkDrawer .mapper ;
55import static org .junit .jupiter .api .Assertions .assertNotNull ;
66import static org .junit .jupiter .api .Assertions .fail ;
7+
78import java .io .IOException ;
89import java .time .DayOfWeek ;
910import java .time .Month ;
@@ -299,8 +300,10 @@ public String generateComment(TitleDescriptionGeneratorInput input) {
299300 @ Nullable
300301 private static JsonNode loadJsonFromUrl (String jsonUrl ) throws IOException {
301302 final HttpGet request = new HttpGet (jsonUrl );
302- request .setConfig (RequestConfig .custom ().setConnectTimeout (1 , TimeUnit .SECONDS )
303- .setConnectionRequestTimeout (1 , TimeUnit .SECONDS ).setResponseTimeout (5 , TimeUnit .SECONDS )
303+ request .setConfig (RequestConfig .custom ()
304+ .setConnectTimeout (1 , TimeUnit .SECONDS )
305+ .setConnectionRequestTimeout (1 , TimeUnit .SECONDS )
306+ .setResponseTimeout (5 , TimeUnit .SECONDS )
304307 .build ());
305308 return httpClient .execute (request , new AbstractHttpClientResponseHandler <JsonNode >() {
306309 @ Override
You can’t perform that action at this time.
0 commit comments