diff --git a/pom.xml b/pom.xml index e6d8afdd06..b1e3705efa 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ 1.0 1.2.9 0.20.0 - 2.11.2 + 2.14.1 1.7.1 2.32.0 5.0.1 @@ -96,6 +96,7 @@ 3.0.0 11 ${java.target.version} + 4.12 Red Hat, Inc. - initial API and implementation ${project.version} @@ -1392,6 +1393,13 @@ ${com.github.kirviq.dumbster.version} test + + junit + junit + ${junit.junit.version} + test + + org.apache.maven.plugin-testing maven-plugin-testing-harness diff --git a/wsmaster/che-core-api-workspace/src/test/java/org/eclipse/che/api/workspace/server/devfile/DevfileParserTest.java b/wsmaster/che-core-api-workspace/src/test/java/org/eclipse/che/api/workspace/server/devfile/DevfileParserTest.java index 38a71d67a3..5ec37bbecc 100644 --- a/wsmaster/che-core-api-workspace/src/test/java/org/eclipse/che/api/workspace/server/devfile/DevfileParserTest.java +++ b/wsmaster/che-core-api-workspace/src/test/java/org/eclipse/che/api/workspace/server/devfile/DevfileParserTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2021 Red Hat, Inc. + * Copyright (c) 2012-2023 Red Hat, Inc. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ @@ -194,7 +194,7 @@ public class DevfileParserTest { JsonProcessingException jsonException = mock(JsonProcessingException.class); when(jsonException.getMessage()).thenReturn("non valid"); when(jsonMapper.readTree(anyString())).thenReturn(devfileJsonNode); - doThrow(jsonException).when(jsonMapper).treeToValue(any(), any()); + doThrow(jsonException).when(jsonMapper).treeToValue(any(), eq(DevfileImpl.class)); // when devfileParser.parseJson(DEVFILE_YAML_CONTENT);