|
18 | 18 | */ |
19 | 19 | package org.cyclonedx.parsers; |
20 | 20 |
|
| 21 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 22 | +import static org.junit.jupiter.api.Assertions.assertFalse; |
| 23 | +import static org.junit.jupiter.api.Assertions.assertNotNull; |
| 24 | +import static org.junit.jupiter.api.Assertions.assertNull; |
| 25 | +import static org.junit.jupiter.api.Assertions.assertTrue; |
| 26 | + |
| 27 | +import java.io.File; |
| 28 | +import java.util.List; |
| 29 | + |
21 | 30 | import org.apache.commons.io.IOUtils; |
22 | 31 | import org.cyclonedx.CycloneDxSchema; |
23 | 32 | import org.cyclonedx.model.Bom; |
|
30 | 39 | import org.cyclonedx.model.Service; |
31 | 40 | import org.cyclonedx.model.ServiceData; |
32 | 41 | import org.junit.jupiter.api.Test; |
33 | | -import java.io.File; |
34 | | -import java.util.List; |
35 | | - |
36 | | -import static org.junit.jupiter.api.Assertions.assertEquals; |
37 | | -import static org.junit.jupiter.api.Assertions.assertFalse; |
38 | | -import static org.junit.jupiter.api.Assertions.assertNotNull; |
39 | | -import static org.junit.jupiter.api.Assertions.assertNull; |
40 | | -import static org.junit.jupiter.api.Assertions.assertTrue; |
41 | 42 |
|
42 | 43 | @SuppressWarnings("deprecation") |
43 | 44 | public class XmlParserTest { |
@@ -439,7 +440,7 @@ public void test13PrereleasePropertyBom() throws Exception { |
439 | 440 | assertEquals("Foo", c1.getProperties().get(0).getName()); |
440 | 441 | assertNull(c1.getProperties().get(0).getValue()); |
441 | 442 |
|
442 | | - System.setProperty("cyclonedx.prerelease.13.properties", "true"); |
| 443 | + System.setProperty("cyclonedx.prerelease.14.properties", "true"); |
443 | 444 | final Bom bom2 = parser.parse(file); |
444 | 445 | Component c2 = bom2.getComponents().get(0); |
445 | 446 | assertEquals(2, c2.getProperties().size()); |
|
0 commit comments