File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ private List<GoblintMessagesResult> readGoblintResponseJson() throws IOException
9090
9191 private List <GoblintFunctionsResult > readGoblintResponseJsonFunc () throws IOException {
9292 String functions = Files .readString (
93- Path .of (GoblintMessagesTest .class .getResource ("messagesResponse .json" ).getPath ())
93+ Path .of (GoblintMessagesTest .class .getResource ("functionsResponse .json" ).getPath ())
9494 );
9595 return gson .fromJson (functions , new TypeToken <List <GoblintFunctionsResult >>() {}.getType ());
9696 }
@@ -179,7 +179,8 @@ public void testConvertFunctionsFromJson() throws IOException {
179179 List <GoblintFunctionsResult > goblintFunctionsResults = readGoblintResponseJsonFunc ();
180180
181181 when (goblintService .functions ()).thenReturn (CompletableFuture .completedFuture (goblintFunctionsResults ));
182- when (gobPieConfiguration .showCfg ()).thenReturn (false );
182+ when (gobPieConfiguration .showCfg ()).thenReturn (true );
183+ when (goblintService .messages ()).thenReturn (CompletableFuture .completedFuture (null ));
183184
184185 goblintAnalysis .analyze (files , analysisConsumer , true );
185186
@@ -193,8 +194,6 @@ public void testConvertFunctionsFromJson() throws IOException {
193194 defaultPos ,
194195 "2.0" ,
195196 "t_fun"
196-
197-
198197 )
199198 );
200199 response .add (
You can’t perform that action at this time.
0 commit comments