Skip to content

Commit b3bcccf

Browse files
committed
Remove local license list version unit test
The test code will need to be updated on every new license list version. Removing the test to simplify the release process. Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
1 parent 062b97c commit b3bcccf

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

src/test/java/org/spdx/storage/listedlicense/SpdxListedLicenseLocalStoreTest.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public class SpdxListedLicenseLocalStoreTest extends TestCase {
5050

5151
private static final String APACHE_ID = "Apache-2.0";
5252
private static final String LICENSE_LIST_URI = "http://spdx.org/licenses/";
53-
private static final String LICENSE_LIST_VERSION = "3.17";
5453
private static final String APACHE_LICENSE_NAME = "Apache License 2.0";
5554

5655
private static final String ECOS_EXCEPTION_ID = "eCos-exception-2.0";
@@ -72,10 +71,6 @@ protected void tearDown() throws Exception {
7271
super.tearDown();
7372
}
7473

75-
/**
76-
* Test method for {@link org.spdx.storage.listedlicense.SpdxListedLicenseModelStore#exists(java.lang.String, java.lang.String)}.
77-
* @throws Exception
78-
*/
7974
public void testExists() throws Exception {
8075
SpdxListedLicenseLocalStore slll = new SpdxListedLicenseLocalStore();
8176
assertTrue(slll.exists(LICENSE_LIST_URI + APACHE_ID));
@@ -84,10 +79,6 @@ public void testExists() throws Exception {
8479
slll.close();
8580
}
8681

87-
/**
88-
* Test method for {@link org.spdx.storage.listedlicense.SpdxListedLicenseModelStore#create(java.lang.String, java.lang.String, java.lang.String)}.
89-
* @throws Exception
90-
*/
9182
public void testCreate() throws Exception {
9283
SpdxListedLicenseLocalStore slll = new SpdxListedLicenseLocalStore();
9384
String nextId = slll.getNextId(IdType.ListedLicense);
@@ -102,10 +93,6 @@ public void testCreate() throws Exception {
10293
slll.close();
10394
}
10495

105-
/**
106-
* Test method for {@link org.spdx.storage.listedlicense.SpdxListedLicenseModelStore#getNextId(org.spdx.storage.IModelStore.IdType, java.lang.String)}.
107-
* @throws Exception
108-
*/
10996
public void testGetNextId() throws Exception {
11097
SpdxListedLicenseLocalStore slll = new SpdxListedLicenseLocalStore();
11198
String nextId = slll.getNextId(IdType.ListedLicense);
@@ -133,16 +120,6 @@ public void testGetSpdxListedExceptionIds() throws Exception {
133120
assertTrue(result.contains(ECOS_EXCEPTION_ID));
134121
slll.close();
135122
}
136-
137-
/**
138-
* Test method for {@link org.spdx.storage.listedlicense.SpdxListedLicenseModelStore#getLicenseListVersion()}.
139-
* @throws Exception
140-
*/
141-
public void testGetLicenseListVersion() throws Exception {
142-
SpdxListedLicenseLocalStore slll = new SpdxListedLicenseLocalStore();
143-
assertTrue(LICENSE_LIST_VERSION.compareTo(slll.getLicenseListVersion()) <= 0);
144-
slll.close();
145-
}
146123

147124
public void testGetValue() throws Exception {
148125
SpdxListedLicenseLocalStore slll = new SpdxListedLicenseLocalStore();

0 commit comments

Comments
 (0)