|
1 |
| -package org.spdx.rdfparser.license; |
2 |
| - |
3 |
| -import org.junit.Assert; |
4 |
| -import org.apache.commons.lang3.StringUtils; |
5 |
| -import org.junit.Test; |
6 |
| - |
7 |
| -/** |
8 |
| - * @author [email protected], Black Duck Software |
9 |
| - * SPDX-License-Identifier: Apache-2.0 |
10 |
| - */ |
11 |
| -public class TestListedLicenses { |
12 |
| - |
13 |
| - @Test |
14 |
| - public void testLicenseListVersionFormat() { |
15 |
| - String licenseListversion = ListedLicenses.getListedLicenses().getLicenseListVersion(); |
16 |
| - |
17 |
| - Assert.assertEquals("Expected one point in license list version. ", 1, StringUtils.countMatches(licenseListversion, ".")); |
18 |
| - Assert.assertTrue("Number expected before the point in license list version (" + licenseListversion + ")", StringUtils.isNumeric(StringUtils.substringBefore(licenseListversion, "."))); |
19 |
| - Assert.assertTrue("Number expected after the point in license list version (" + licenseListversion + ")", StringUtils.isNumeric(StringUtils.substringAfter(licenseListversion, "."))); |
20 |
| - } |
21 |
| -} |
| 1 | +package org.spdx.rdfparser.license; |
| 2 | + |
| 3 | +import org.junit.Assert; |
| 4 | +import org.apache.commons.lang3.StringUtils; |
| 5 | +import org.junit.Test; |
| 6 | + |
| 7 | +/** |
| 8 | + * @author [email protected], Black Duck Software |
| 9 | + * SPDX-License-Identifier: Apache-2.0 |
| 10 | + */ |
| 11 | +public class TestListedLicenses { |
| 12 | + |
| 13 | + @Test |
| 14 | + public void testLicenseListVersionFormat() { |
| 15 | + String licenseListversion = ListedLicenses.getListedLicenses().getLicenseListVersion(); |
| 16 | + |
| 17 | + Assert.assertEquals("Expected one point in license list version. ", 1, StringUtils.countMatches(licenseListversion, ".")); |
| 18 | + Assert.assertTrue("Number expected before the point in license list version (" + licenseListversion + ")", StringUtils.isNumeric(StringUtils.substringBefore(licenseListversion, "."))); |
| 19 | + Assert.assertTrue("Number expected after the point in license list version (" + licenseListversion + ")", StringUtils.isNumeric(StringUtils.substringAfter(licenseListversion, "."))); |
| 20 | + } |
| 21 | +} |
0 commit comments