Skip to content

Commit

Permalink
Merge pull request #901 from DependencyTrack/fix-test-warning
Browse files Browse the repository at this point in the history
Fix `Attempt to use transient object as parameter in query` warning in test
  • Loading branch information
nscuro authored Sep 13, 2024
2 parents aa89649 + f2761e3 commit 1a7359a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1181,9 +1181,11 @@ public void getVulnerabilitiesByTagTest() {
Vulnerability vuln1 = new Vulnerability();
vuln1.setVulnId("ACME-1");
vuln1.setSource(Vulnerability.Source.INTERNAL);
qm.persist(vuln1);
Vulnerability vuln2 = new Vulnerability();
vuln2.setVulnId("ACME-2");
vuln2.setSource(Vulnerability.Source.INTERNAL);
qm.persist(vuln2);
Tag tag = qm.createTag("v-tag");
qm.bind(vuln1, List.of(tag));
qm.bind(vuln2, List.of(tag));
Expand Down

0 comments on commit 1a7359a

Please sign in to comment.