Skip to content

Commit

Permalink
fix: add test for NPE when license does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
remisbaima committed May 2, 2022
1 parent d21246e commit 48fffe6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -57,7 +57,11 @@ public void testError() throws IOException, Exception {
.forProject(baseDir)
.execute("clean", "package")
.assertLogText("[ERROR] ")
.assertLogText("org.codehaus.woodstox:stax2-api:4.2.1");
.assertLogText("org.codehaus.woodstox:stax2-api:4.2.1")
.assertLogText("org.openapitools:jackson-databind-nullable:0.2.2")
.assertLogText("- ID: null")
.assertLogText("- URL: null")
.assertLogText("- Name: null");
}

private MavenExecutionResult checkHappyPath(String projectName) throws IOException, Exception {
Expand Down
5 changes: 5 additions & 0 deletions src/test/resources/error-project/pom.xml
Expand Up @@ -29,6 +29,11 @@
<artifactId>cyclonedx-core-java</artifactId>
<version>7.0.0</version>
</dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>0.2.2</version>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit 48fffe6

Please sign in to comment.