Java 11 migration: fixing problem on 'openecomp-tosca-converter-core' 13/108213/2
authorChris André <chris.andre@yoppworks.com>
Tue, 26 May 2020 00:24:26 +0000 (20:24 -0400)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Tue, 26 May 2020 09:23:36 +0000 (09:23 +0000)
- Explicitely indicate the type associated with 'Collection'

Issue-ID: SDC-3030
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I557eb205598c337b75b06a2c7d705276aeb543a1

openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/java/org/openecomp/core/converter/impl/pnfd/PnfTransformationEngineParameterizedTest.java

index a343e1a..1eb09a8 100644 (file)
@@ -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);