-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failing tests due to new
UNIQUE
constraints
Tests made bad assumptions about duplicate projects being allowed. Also, remove `JdbiTestUtil` which was only necessary to run JDBI tests with H2. Since we dropped H2, this is no longer required. Signed-off-by: nscuro <[email protected]>
- Loading branch information
Showing
5 changed files
with
97 additions
and
111 deletions.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
src/test/java/org/dependencytrack/persistence/jdbi/JdbiTestUtil.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ public void setUp() throws Exception { | |
@Test | ||
public void getFindingsByProjectTest() { | ||
Project p1 = qm.createProject("Acme Example", null, "1.0", null, null, null, true, false); | ||
Project p2 = qm.createProject("Acme Example", null, "1.0", null, null, null, true, false); | ||
Project p2 = qm.createProject("Acme Example", null, "2.0", null, null, null, true, false); | ||
Component c1 = createComponent(p1, "Component A", "1.0"); | ||
Component c2 = createComponent(p1, "Component B", "1.0"); | ||
Component c3 = createComponent(p1, "Component C", "1.0"); | ||
|
@@ -151,7 +151,7 @@ public void getFindingsByProjectInvalidTest() { | |
@Test | ||
public void exportFindingsByProjectTest() { | ||
Project p1 = qm.createProject("Acme Example", null, "1.0", null, null, null, true, false); | ||
Project p2 = qm.createProject("Acme Example", null, "1.0", null, null, null, true, false); | ||
Project p2 = qm.createProject("Acme Example", null, "2.0", null, null, null, true, false); | ||
Component c1 = createComponent(p1, "Component A", "1.0"); | ||
Component c2 = createComponent(p1, "Component B", "1.0"); | ||
Component c3 = createComponent(p1, "Component C", "1.0"); | ||
|
@@ -238,7 +238,7 @@ public void exportFindingsByProjectInvalidTest() { | |
@Test | ||
public void getFindingsByProjectWithComponentLatestVersionTest() { | ||
Project p1 = qm.createProject("Acme Example", null, "1.0", null, null, null, true, false); | ||
Project p2 = qm.createProject("Acme Example", null, "1.0", null, null, null, true, false); | ||
Project p2 = qm.createProject("Acme Example", null, "2.0", null, null, null, true, false); | ||
Component c1 = createComponent(p1, "Component A", "1.0"); | ||
c1.setPurl("pkg:/maven/org.acme/[email protected]"); | ||
RepositoryMetaComponent r1 = new RepositoryMetaComponent(); | ||
|