-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from blackducksoftware/ek-add-primary-creator
adding primary creator
- Loading branch information
Showing
8 changed files
with
70 additions
and
47 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
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
32 changes: 0 additions & 32 deletions
32
src/main/java/com/blackducksoftware/integration/hub/bdio/model/ToolSpdxCreator.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/main/resources/com/blackducksoftware/integration/hub/bdio/version.txt
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 |
---|---|---|
@@ -1 +1 @@ | ||
12.2.0-SNAPSHOT | ||
15.0.0 |
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
28 changes: 28 additions & 0 deletions
28
src/test/java/com/blackducksoftware/integration/hub/bdio/model/BdioCreationInfoTest.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,28 @@ | ||
package com.blackducksoftware.integration.hub.bdio.model; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
import org.junit.Test; | ||
|
||
public class BdioCreationInfoTest { | ||
@Test | ||
public void testAddingMultipleCreators() { | ||
final BdioCreationInfo bdioCreationInfo = new BdioCreationInfo(); | ||
bdioCreationInfo.addSpdxCreator(SpdxCreator.createToolSpdxCreator("a simple tool", "2.0")); | ||
bdioCreationInfo.addSpdxCreator(SpdxCreator.createToolSpdxCreator("another simple tool", "1.0")); | ||
|
||
assertEquals(2, bdioCreationInfo.getCreator().size()); | ||
assertEquals("Tool: a simple tool-2.0", bdioCreationInfo.getCreator().get(0)); | ||
} | ||
|
||
@Test | ||
public void testSettingPrimaryCreator() { | ||
final BdioCreationInfo bdioCreationInfo = new BdioCreationInfo(); | ||
bdioCreationInfo.addSpdxCreator(SpdxCreator.createToolSpdxCreator("a simple tool", "2.0")); | ||
bdioCreationInfo.setPrimarySpdxCreator(SpdxCreator.createToolSpdxCreator("another simple tool", "1.0")); | ||
|
||
assertEquals(2, bdioCreationInfo.getCreator().size()); | ||
assertEquals("Tool: another simple tool-1.0", bdioCreationInfo.getCreator().get(0)); | ||
} | ||
|
||
} |