Skip to content

Commit

Permalink
Test for handing empty license.
Browse files Browse the repository at this point in the history
Signed-off-by: Wayne Beaton <wayne.beaton@eclipse-foundation.org>
  • Loading branch information
waynebeaton committed Jul 21, 2020
1 parent 3995528 commit b907560
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ void testRestrictedLicense() {
assertEquals(LicenseSupport.Status.Restricted, getLicenseSupport().getStatus("GPL-2.0"));
}

@Test
void testEmptyLicense() {
assertEquals(LicenseSupport.Status.Restricted, getLicenseSupport().getStatus(""));
}

/**
* In SPDX, an "AND" condition indicates that the consumer must accept both
* licenses. Generally, this sort of condition means that some of the content is
Expand Down

0 comments on commit b907560

Please sign in to comment.