aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris André <chris.andre@yoppworks.com>2020-05-25 20:24:26 -0400
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-05-26 09:23:36 +0000
commit93638b5d9a498008a4dda9c27855586daf222691 (patch)
tree8e961b0d9f57cae5ae0a121a9618f0899928f00e
parent50906f4dcd00b0162298d1f86d72dcfc4d3caee9 (diff)
Java 11 migration: fixing problem on 'openecomp-tosca-converter-core'
- Explicitely indicate the type associated with 'Collection' Issue-ID: SDC-3030 Signed-off-by: Chris Andre <chris.andre@yoppworks.com> Change-Id: I557eb205598c337b75b06a2c7d705276aeb543a1
-rw-r--r--openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java
index a343e1aec0..1eb09a8b44 100644
--- a/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java
+++ b/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java
@@ -74,7 +74,7 @@ public class PnfTransformationEngineParameterizedTest {
@Parameterized.Parameters(name = "{index}: input: {0}, descriptor: {4}, output: {2}")
- public static Collection input() throws IOException, URISyntaxException {
+ public static Collection<Object> input() throws IOException, URISyntaxException {
return Files.list(getPathFromClasspath(TEST_CASES_PATH)).map(path -> {
try {
return buildTestCase(path);
@@ -84,7 +84,7 @@ public class PnfTransformationEngineParameterizedTest {
}).filter(Objects::nonNull).flatMap(Collection::stream).collect(Collectors.toList());
}
- private static Collection buildTestCase(final Path testCasePath) throws IOException {
+ private static Collection<Object[]> buildTestCase(final Path testCasePath) throws IOException {
final Path inputFilePath = Files.list(testCasePath)
.filter(path -> path.toFile().getName().endsWith("yaml"))
.findAny().orElse(null);