Skip to content

Commit

Permalink
Stabilize test
Browse files Browse the repository at this point in the history
  • Loading branch information
henryju committed Apr 30, 2021
1 parent b66ddc8 commit c5891f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void download_all_issues_include_taint_vulnerabilities_and_code_snippets(
Flow flow = taintIssue.getFlows().get(0);
assertThat(flow.locations()).isNotEmpty();
assertThat(flow.locations().get(0).getCodeSnippet()).isEqualTo("statement.executeQuery(query)");
assertThat(flow.locations().get(flow.locations().size() - 1).getCodeSnippet()).isEqualTo("request.getParameter(\"user\")");
assertThat(flow.locations().get(flow.locations().size() - 1).getCodeSnippet()).isIn("request.getParameter(\"user\")", "request.getParameter(\"pass\")");
}

private void analyzeMavenProject(String projectDirName) {
Expand Down

0 comments on commit c5891f4

Please sign in to comment.