Skip to content

Commit 3b206be

Browse files
committed
Added adjustments to function test
1 parent 91c08c3 commit 3b206be

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/java/GoblintMessagesTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)