Skip to content

Commit a86e452

Browse files
committed
Don't allow dates to have decimals
Remove a unit test for subseconds. Required for compatibility with changes in the SPDX Java Library. See spdx/spdx-java-model-2_X#18
1 parent 3aa7f27 commit a86e452

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/test/java/org/spdx/library/model/compat/v2/SpdxVerificationHelperTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ public void testVerifyDate() {
9494
String fullDate = format.format(new Date());
9595
assertTrue(Objects.isNull(SpdxVerificationHelper.verifyDate(fullDate)));
9696
assertFalse(Objects.isNull(SpdxVerificationHelper.verifyDate(new Date().toString())));
97-
String withSubSeconds = fullDate.substring(0, fullDate.length()-1) + ".234Z";
98-
assertTrue(Objects.isNull(SpdxVerificationHelper.verifyDate(withSubSeconds)));
9997
}
10098

10199
/**

0 commit comments

Comments
 (0)