File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
SequenceAnalysis/test/src/org/labkey/test/tests/external/labModules Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1818import org .apache .commons .io .FileUtils ;
1919import org .apache .commons .lang3 .StringUtils ;
2020import org .apache .commons .lang3 .tuple .Pair ;
21- import org .json .simple .JSONObject ;
22- import org .json .simple .parser .JSONParser ;
23- import org .json .simple .parser .ParseException ;
21+ import org .json .JSONException ;
22+ import org .json .JSONObject ;
2423import org .junit .Assert ;
2524import org .junit .Test ;
2625import org .junit .experimental .categories .Category ;
@@ -104,10 +103,10 @@ private boolean isExternalPipelineEnabled()
104103 Boolean sequencePipelineEnabled ;
105104 try
106105 {
107- JSONObject json = ( JSONObject ) new JSONParser (). parse (httpResponse .getResponseBody ());
106+ JSONObject json = new JSONObject (httpResponse .getResponseBody ());
108107 sequencePipelineEnabled = (Boolean ) json .get ("isPipelineEnabled" );
109108 }
110- catch (ParseException | ClassCastException e )
109+ catch (JSONException | ClassCastException e )
111110 {
112111 sequencePipelineEnabled = false ;
113112 }
You can’t perform that action at this time.
0 commit comments