-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed unit test for repometaanalysistask
Signed-off-by: mehab <[email protected]>
- Loading branch information
Showing
11 changed files
with
25 additions
and
23 deletions.
There are no files selected for viewing
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
4 changes: 0 additions & 4 deletions
4
src/main/java/org/dependencytrack/event/kafka/componentmeta/ComponentProjection.java
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
src/main/java/org/dependencytrack/event/kafka/componentmeta/ComponentProjectionWithPurl.java
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package org.dependencytrack.event.kafka.componentmeta; | ||
|
||
public record ComponentProjectionWithPurl(String purlCoordinates, Boolean internal, String purl) { | ||
} |
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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ public void createHandlerForSupportedPackageTest() { | |
KafkaEventDispatcher kafkaEventDispatcher = new KafkaEventDispatcher(); | ||
try { | ||
PackageURL packageUrl = new PackageURL("pkg:maven/org.http4s/blaze-core_2.12"); | ||
ComponentProjection componentProjection = new ComponentProjection(PurlUtil.silentPurlCoordinatesOnly(packageUrl).toString(), false, packageUrl.toString()); | ||
ComponentProjectionWithPurl componentProjection = new ComponentProjectionWithPurl(PurlUtil.silentPurlCoordinatesOnly(packageUrl).toString(), false, packageUrl.toString()); | ||
handler = HandlerFactory.createHandler(componentProjection, qm, kafkaEventDispatcher, false); | ||
assertTrue(handler instanceof SupportedMetaHandler); | ||
} catch (MalformedPackageURLException e) { | ||
|
@@ -35,7 +35,7 @@ public void createHandlerForUnSupportedPackageTest() { | |
KafkaEventDispatcher kafkaEventDispatcher = new KafkaEventDispatcher(); | ||
try { | ||
PackageURL packageUrl = new PackageURL("pkg:golang/github.com/foo/[email protected]"); | ||
ComponentProjection componentProjection = new ComponentProjection(PurlUtil.silentPurlCoordinatesOnly(packageUrl).toString(), false, packageUrl.toString()); | ||
ComponentProjectionWithPurl componentProjection = new ComponentProjectionWithPurl(PurlUtil.silentPurlCoordinatesOnly(packageUrl).toString(), false, packageUrl.toString()); | ||
handler = HandlerFactory.createHandler(componentProjection, qm, kafkaEventDispatcher, false); | ||
assertTrue(handler instanceof UnSupportedMetaHandler); | ||
} catch (MalformedPackageURLException e) { | ||
|
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