Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilagichani14 committed Nov 6, 2024
1 parent 0b757b3 commit 7db44c6
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ public class JimpleStringAnalysisInputLocationTest {
public void testInvalidInput() {
String methodStr = "This is not Jimple its just a Sentence.";
assertThrows(
IllegalArgumentException.class, () -> new JimpleStringAnalysisInputLocation(methodStr));
IllegalArgumentException.class,
() -> {
JimpleStringAnalysisInputLocation analysisInputLocation =
new JimpleStringAnalysisInputLocation(methodStr);
JimpleView view = new JimpleView(analysisInputLocation);
analysisInputLocation.getClassSources(view);
});
}

@Test
Expand Down

0 comments on commit 7db44c6

Please sign in to comment.