|
16 | 16 | */ |
17 | 17 | package io.github.guacsec.trustifyda.providers; |
18 | 18 |
|
19 | | -import static io.github.guacsec.trustifyda.Provider.PROP_MATCH_MANIFEST_VERSIONS; |
| 19 | +import java.io.IOException; |
| 20 | +import java.nio.file.Files; |
| 21 | +import java.nio.file.Path; |
| 22 | +import java.util.Arrays; |
| 23 | +import java.util.stream.Stream; |
| 24 | + |
20 | 25 | import static org.assertj.core.api.Assertions.assertThat; |
21 | 26 | import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; |
22 | 27 | import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; |
23 | 28 | import static org.junit.jupiter.api.Assertions.assertEquals; |
24 | 29 | import static org.junit.jupiter.api.Assertions.assertThrows; |
25 | 30 | import static org.junit.jupiter.api.Assertions.assertTrue; |
| 31 | +import org.junit.jupiter.api.Test; |
| 32 | +import org.junit.jupiter.api.extension.ExtendWith; |
| 33 | +import org.junit.jupiter.params.ParameterizedTest; |
| 34 | +import org.junit.jupiter.params.provider.MethodSource; |
| 35 | +import org.junit.jupiter.params.provider.ValueSource; |
26 | 36 |
|
27 | 37 | import com.fasterxml.jackson.core.JsonProcessingException; |
28 | 38 | import com.fasterxml.jackson.databind.JsonNode; |
29 | 39 | import com.fasterxml.jackson.databind.ObjectMapper; |
30 | 40 | import com.fasterxml.jackson.databind.SerializationFeature; |
| 41 | + |
31 | 42 | import io.github.guacsec.trustifyda.Api; |
32 | 43 | import io.github.guacsec.trustifyda.ExhortTest; |
33 | | -import java.io.IOException; |
34 | | -import java.nio.file.Files; |
35 | | -import java.nio.file.Path; |
36 | | -import java.util.Arrays; |
37 | | -import java.util.stream.Stream; |
38 | | -import org.junit.jupiter.api.Test; |
39 | | -import org.junit.jupiter.api.extension.ExtendWith; |
40 | | -import org.junit.jupiter.params.ParameterizedTest; |
41 | | -import org.junit.jupiter.params.provider.MethodSource; |
42 | | -import org.junit.jupiter.params.provider.ValueSource; |
| 44 | +import static io.github.guacsec.trustifyda.Provider.PROP_MATCH_MANIFEST_VERSIONS; |
43 | 45 |
|
44 | 46 | @ExtendWith(HelperExtension.class) |
45 | 47 | class Golang_Modules_Provider_Test extends ExhortTest { |
@@ -205,9 +207,6 @@ void Test_Golang_MvS_Logic_Disabled() throws IOException { |
205 | 207 | * HashMap.put()} which overwrites children when two original parent versions remap to the same |
206 | 208 | * MVS-selected version. This causes the Java client to produce fewer components than the JS |
207 | 209 | * client. |
208 | | - * |
209 | | - * <p>The JS client produces 138 components for this fixture. This test is expected to FAIL until |
210 | | - * the HashMap.put() collision bug is fixed. |
211 | 210 | */ |
212 | 211 | @Test |
213 | 212 | void Test_Golang_MvS_Enabled_Preserves_All_Transitive_Dependencies() throws IOException { |
|
0 commit comments