diff --git a/agents/bootstrapper/pom.xml b/agents/bootstrapper/pom.xml
index f538ea61d8a..12417d12b06 100644
--- a/agents/bootstrapper/pom.xml
+++ b/agents/bootstrapper/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
bootstrapper
Agents :: Bootstrapper
diff --git a/agents/exec/pom.xml b/agents/exec/pom.xml
index 019a20f091f..71c71de1f6d 100644
--- a/agents/exec/pom.xml
+++ b/agents/exec/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
exec-agent
Agent :: Exec
diff --git a/agents/git-credentials/pom.xml b/agents/git-credentials/pom.xml
index 07506c3cbf1..0c45e6780de 100644
--- a/agents/git-credentials/pom.xml
+++ b/agents/git-credentials/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
git-credentials-agent
Git Credentials Agent
diff --git a/agents/go-agents/pom.xml b/agents/go-agents/pom.xml
index 3b682a7168a..43341849999 100644
--- a/agents/go-agents/pom.xml
+++ b/agents/go-agents/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
go-agents
Agent :: Golang agents
diff --git a/agents/ls-csharp/pom.xml b/agents/ls-csharp/pom.xml
index 8dc53530890..79f933c7dbb 100644
--- a/agents/ls-csharp/pom.xml
+++ b/agents/ls-csharp/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
ls-csharp-agent
Language Server C# Agent
diff --git a/agents/ls-json/pom.xml b/agents/ls-json/pom.xml
index bcb110ecec7..3798a965e07 100644
--- a/agents/ls-json/pom.xml
+++ b/agents/ls-json/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
ls-json-agent
Language Server Json Agent
diff --git a/agents/ls-php/pom.xml b/agents/ls-php/pom.xml
index 294ac9dd611..84f6f31ec08 100644
--- a/agents/ls-php/pom.xml
+++ b/agents/ls-php/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
ls-php-agent
Language Server PHP Agent
diff --git a/agents/ls-python/pom.xml b/agents/ls-python/pom.xml
index 97e697770ee..4c4ff6c15b8 100644
--- a/agents/ls-python/pom.xml
+++ b/agents/ls-python/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
ls-python-agent
Language Server python Agent
diff --git a/agents/ls-typescript/pom.xml b/agents/ls-typescript/pom.xml
index 6b47d98a42e..d804af54da3 100644
--- a/agents/ls-typescript/pom.xml
+++ b/agents/ls-typescript/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
ls-typescript-agent
Language Server typescript Agent
diff --git a/agents/ls-yaml/pom.xml b/agents/ls-yaml/pom.xml
index 866e1e5ab6e..2cf4d7355d7 100644
--- a/agents/ls-yaml/pom.xml
+++ b/agents/ls-yaml/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
ls-yaml-agent
Language Server Yaml Agent
diff --git a/agents/pom.xml b/agents/pom.xml
index ac1c9cd9ebf..5086d033434 100644
--- a/agents/pom.xml
+++ b/agents/pom.xml
@@ -16,11 +16,11 @@
che-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
../pom.xml
che-agents-parent
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
pom
Che Agents Parent
diff --git a/agents/ssh/pom.xml b/agents/ssh/pom.xml
index e5c7800bb54..02dd5c2a943 100644
--- a/agents/ssh/pom.xml
+++ b/agents/ssh/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
ssh-agent
SSH Agent
diff --git a/agents/terminal/pom.xml b/agents/terminal/pom.xml
index a7ef8da65b8..67c40f8c2b8 100644
--- a/agents/terminal/pom.xml
+++ b/agents/terminal/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
terminal-agent
Agent :: Terminal
diff --git a/agents/test-ls/pom.xml b/agents/test-ls/pom.xml
index fa8bfc17871..6832bf79bfd 100644
--- a/agents/test-ls/pom.xml
+++ b/agents/test-ls/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
test-ls-agent
Test Language Server Agent
diff --git a/agents/unison/pom.xml b/agents/unison/pom.xml
index 8408b346277..73b81b7cae4 100644
--- a/agents/unison/pom.xml
+++ b/agents/unison/pom.xml
@@ -16,7 +16,7 @@
che-agents-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
unison-agent
Unison Agent
diff --git a/assembly-multiuser/assembly-ide-war/pom.xml b/assembly-multiuser/assembly-ide-war/pom.xml
index 5144bfc1f34..61642b090a1 100644
--- a/assembly-multiuser/assembly-ide-war/pom.xml
+++ b/assembly-multiuser/assembly-ide-war/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che.assembly-multiuser
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-ide-war
war
diff --git a/assembly-multiuser/assembly-main/pom.xml b/assembly-multiuser/assembly-main/pom.xml
index 23a370a0180..525c3f94237 100644
--- a/assembly-multiuser/assembly-main/pom.xml
+++ b/assembly-multiuser/assembly-main/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che.assembly-multiuser
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-main
pom
diff --git a/assembly-multiuser/assembly-wsagent-server/pom.xml b/assembly-multiuser/assembly-wsagent-server/pom.xml
index 829de0dc0d3..f02a79ed20c 100644
--- a/assembly-multiuser/assembly-wsagent-server/pom.xml
+++ b/assembly-multiuser/assembly-wsagent-server/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che.assembly-multiuser
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-wsagent-server
pom
diff --git a/assembly-multiuser/assembly-wsagent-war/pom.xml b/assembly-multiuser/assembly-wsagent-war/pom.xml
index fae6479db80..46d261ca5b9 100644
--- a/assembly-multiuser/assembly-wsagent-war/pom.xml
+++ b/assembly-multiuser/assembly-wsagent-war/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che.assembly-multiuser
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-wsagent-war
war
diff --git a/assembly-multiuser/assembly-wsmaster-war/pom.xml b/assembly-multiuser/assembly-wsmaster-war/pom.xml
index b28560f4a2d..b66f3709063 100644
--- a/assembly-multiuser/assembly-wsmaster-war/pom.xml
+++ b/assembly-multiuser/assembly-wsmaster-war/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che.assembly-multiuser
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-wsmaster-war
war
diff --git a/assembly-multiuser/pom.xml b/assembly-multiuser/pom.xml
index b834ae96dc5..74e745be39a 100644
--- a/assembly-multiuser/pom.xml
+++ b/assembly-multiuser/pom.xml
@@ -16,12 +16,12 @@
che-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
../pom.xml
org.eclipse.che.assembly-multiuser
che-assembly-parent
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
pom
Che IDE Assembly Multiuser :: Parent
diff --git a/assembly/assembly-ide-war/pom.xml b/assembly/assembly-ide-war/pom.xml
index 966009ff71a..55e5a6d9802 100644
--- a/assembly/assembly-ide-war/pom.xml
+++ b/assembly/assembly-ide-war/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-ide-war
war
diff --git a/assembly/assembly-main/pom.xml b/assembly/assembly-main/pom.xml
index ffc03fc8f4b..c6b5b16144a 100644
--- a/assembly/assembly-main/pom.xml
+++ b/assembly/assembly-main/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-main
pom
diff --git a/assembly/assembly-wsagent-server/pom.xml b/assembly/assembly-wsagent-server/pom.xml
index 4fa13ff4de3..35504d3df5d 100644
--- a/assembly/assembly-wsagent-server/pom.xml
+++ b/assembly/assembly-wsagent-server/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-wsagent-server
pom
diff --git a/assembly/assembly-wsagent-war/pom.xml b/assembly/assembly-wsagent-war/pom.xml
index 0c8383ff3ea..17ec5bb9a5f 100644
--- a/assembly/assembly-wsagent-war/pom.xml
+++ b/assembly/assembly-wsagent-war/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-wsagent-war
war
diff --git a/assembly/assembly-wsmaster-war/pom.xml b/assembly/assembly-wsmaster-war/pom.xml
index 9842b3abe2e..76b6b1941b9 100644
--- a/assembly/assembly-wsmaster-war/pom.xml
+++ b/assembly/assembly-wsmaster-war/pom.xml
@@ -16,7 +16,7 @@
che-assembly-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
assembly-wsmaster-war
war
@@ -304,7 +304,7 @@
org.mockito
- mockito-all
+ mockito-core
test
diff --git a/assembly/pom.xml b/assembly/pom.xml
index 9ab6d1521a9..e0b2352a7b2 100644
--- a/assembly/pom.xml
+++ b/assembly/pom.xml
@@ -16,12 +16,12 @@
che-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
../pom.xml
org.eclipse.che
che-assembly-parent
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
pom
Che IDE :: Parent
diff --git a/core/che-core-api-core/pom.xml b/core/che-core-api-core/pom.xml
index 58e6603d59d..c50072075b4 100644
--- a/core/che-core-api-core/pom.xml
+++ b/core/che-core-api-core/pom.xml
@@ -16,7 +16,7 @@
che-core-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-api-core
jar
@@ -152,11 +152,6 @@
hamcrest-library
test
-
- org.mockito
- mockito-all
- test
-
org.mockito
mockito-core
diff --git a/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/jsonrpc/commons/JsonRpcMessageReceiverTest.java b/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/jsonrpc/commons/JsonRpcMessageReceiverTest.java
index 2201fda1dcd..b487b33dc78 100644
--- a/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/jsonrpc/commons/JsonRpcMessageReceiverTest.java
+++ b/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/jsonrpc/commons/JsonRpcMessageReceiverTest.java
@@ -19,6 +19,7 @@
import org.mockito.InjectMocks;
import org.mockito.Mock;
+import org.mockito.Mockito;
import org.mockito.testng.MockitoTestNGListener;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
@@ -75,6 +76,8 @@ public void shouldDispatchResponseIfResponseReceived() throws Exception {
when(jsonRpcQualifier.isJsonRpcResponse(MESSAGE)).thenReturn(true);
when(jsonRpcQualifier.isJsonRpcRequest(MESSAGE)).thenReturn(false);
when(jsonRpcUnmarshaller.unmarshalArray(any())).thenReturn(singletonList(MESSAGE));
+ JsonRpcResponse jsonRpcResponse = Mockito.mock(JsonRpcResponse.class);
+ when(jsonRpcUnmarshaller.unmarshalResponse(any())).thenReturn(jsonRpcResponse);
jsonRpcMessageReceiver.receive(ENDPOINT_ID, MESSAGE);
diff --git a/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/rest/DefaultHttpJsonRequestTest.java b/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/rest/DefaultHttpJsonRequestTest.java
index 5cb0f28ce26..a0ad05a8bc7 100644
--- a/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/rest/DefaultHttpJsonRequestTest.java
+++ b/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/rest/DefaultHttpJsonRequestTest.java
@@ -13,9 +13,8 @@
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import static org.eclipse.che.api.core.util.LinksHelper.createLink;
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.nullable;
import static org.mockito.Matchers.anyInt;
-import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.doReturn;
@@ -98,8 +97,13 @@ public void shouldUseUrlAndMethodFromTheLinks() throws Exception {
final DefaultHttpJsonRequest request = spy(new DefaultHttpJsonRequest(link));
doReturn(new DefaultHttpJsonResponse("", 200))
.when(request)
- .doRequest(anyInt(), anyString(), anyString(), anyObject(), any(), anyString());
-
+ .doRequest(
+ anyInt(),
+ anyString(),
+ anyString(),
+ nullable(Object.class),
+ nullable(List.class),
+ nullable(String.class));
request.request();
verify(request).doRequest(0, DEFAULT_URL, "POST", null, null, null);
@@ -365,6 +369,12 @@ private String getUrl(ITestContext ctx) {
private void prepareResponse(String response) throws Exception {
doReturn(new DefaultHttpJsonResponse(response, 200))
.when(request)
- .doRequest(anyInt(), anyString(), anyString(), anyObject(), any(), anyString());
+ .doRequest(
+ anyInt(),
+ anyString(),
+ anyString(),
+ nullable(Object.class),
+ nullable(List.class),
+ nullable(String.class));
}
}
diff --git a/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/util/lineconsumer/ConcurrentCompositeLineConsumerTest.java b/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/util/lineconsumer/ConcurrentCompositeLineConsumerTest.java
index 2da7c346981..08933697d14 100644
--- a/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/util/lineconsumer/ConcurrentCompositeLineConsumerTest.java
+++ b/core/che-core-api-core/src/test/java/org/eclipse/che/api/core/util/lineconsumer/ConcurrentCompositeLineConsumerTest.java
@@ -32,6 +32,8 @@
import org.mockito.Mock;
import org.mockito.exceptions.base.MockitoException;
import org.mockito.internal.invocation.InvocationMatcher;
+import org.mockito.internal.verification.VerificationModeFactory;
+import org.mockito.internal.verification.api.VerificationData;
import org.mockito.invocation.Invocation;
import org.mockito.testng.MockitoTestNGListener;
import org.mockito.verification.VerificationMode;
@@ -260,8 +262,10 @@ private LineConsumer[] appendTo(LineConsumer[] base, LineConsumer... toAppend) {
* verify(someMock, last()).someMethod();
*
*/
- private static VerificationMode last() {
- return (verificationData) -> {
+ public static class Last implements VerificationMode {
+ public Last() {}
+
+ public void verify(VerificationData verificationData) {
List invocations = verificationData.getAllInvocations();
InvocationMatcher invocationMatcher = verificationData.getWanted();
@@ -276,6 +280,14 @@ private static VerificationMode last() {
if (!invocationMatcher.matches(invocation)) {
throw new MockitoException("\nWanted but not invoked:\n" + invocationMatcher);
}
- };
+ }
+
+ public VerificationMode description(String description) {
+ return VerificationModeFactory.description(this, description);
+ }
+ }
+
+ public static VerificationMode last() {
+ return new Last();
}
}
diff --git a/core/che-core-api-dto-maven-plugin/pom.xml b/core/che-core-api-dto-maven-plugin/pom.xml
index 120c0e7c78d..2fe6be48deb 100644
--- a/core/che-core-api-dto-maven-plugin/pom.xml
+++ b/core/che-core-api-dto-maven-plugin/pom.xml
@@ -16,7 +16,7 @@
che-core-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-api-dto-maven-plugin
maven-plugin
diff --git a/core/che-core-api-dto/pom.xml b/core/che-core-api-dto/pom.xml
index 5079575ab85..578f0227917 100644
--- a/core/che-core-api-dto/pom.xml
+++ b/core/che-core-api-dto/pom.xml
@@ -16,7 +16,7 @@
che-core-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-api-dto
jar
diff --git a/core/che-core-api-model/pom.xml b/core/che-core-api-model/pom.xml
index f5a4e596002..6e2ae008ed8 100644
--- a/core/che-core-api-model/pom.xml
+++ b/core/che-core-api-model/pom.xml
@@ -16,7 +16,7 @@
che-core-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-api-model
jar
diff --git a/core/che-core-db-vendor-h2/pom.xml b/core/che-core-db-vendor-h2/pom.xml
index 89853b27e9a..2403b2d04dc 100644
--- a/core/che-core-db-vendor-h2/pom.xml
+++ b/core/che-core-db-vendor-h2/pom.xml
@@ -16,7 +16,7 @@
che-core-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-db-vendor-h2
Che Core :: DB :: Vendor H2
diff --git a/core/che-core-db-vendor-postgresql/pom.xml b/core/che-core-db-vendor-postgresql/pom.xml
index e21952cd2b1..f3b1a2f0494 100644
--- a/core/che-core-db-vendor-postgresql/pom.xml
+++ b/core/che-core-db-vendor-postgresql/pom.xml
@@ -16,7 +16,7 @@
che-core-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-db-vendor-postgresql
Che Core :: DB :: Vendor PostgreSQL
diff --git a/core/che-core-db/pom.xml b/core/che-core-db/pom.xml
index 8bfc3298074..1ef2bf3facd 100644
--- a/core/che-core-db/pom.xml
+++ b/core/che-core-db/pom.xml
@@ -16,7 +16,7 @@
che-core-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-db
Che Core :: DB
diff --git a/core/che-core-typescript-dto-maven-plugin/pom.xml b/core/che-core-typescript-dto-maven-plugin/pom.xml
index 751e6b1b5e1..c0c5151743d 100644
--- a/core/che-core-typescript-dto-maven-plugin/pom.xml
+++ b/core/che-core-typescript-dto-maven-plugin/pom.xml
@@ -16,7 +16,7 @@
che-core-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
org.eclipse.che.core
che-core-typescript-dto-maven-plugin
@@ -105,7 +105,7 @@
org.mockito
- mockito-all
+ mockito-core
test
diff --git a/core/commons/che-core-commons-annotations/pom.xml b/core/commons/che-core-commons-annotations/pom.xml
index 65d337aef31..dc8ce30fed7 100644
--- a/core/commons/che-core-commons-annotations/pom.xml
+++ b/core/commons/che-core-commons-annotations/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-annotations
jar
diff --git a/core/commons/che-core-commons-auth/pom.xml b/core/commons/che-core-commons-auth/pom.xml
index e437f36bcda..9e36000c3b3 100644
--- a/core/commons/che-core-commons-auth/pom.xml
+++ b/core/commons/che-core-commons-auth/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-auth
jar
diff --git a/core/commons/che-core-commons-inject/pom.xml b/core/commons/che-core-commons-inject/pom.xml
index a53b24456ab..a4a0c91e935 100644
--- a/core/commons/che-core-commons-inject/pom.xml
+++ b/core/commons/che-core-commons-inject/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-inject
jar
@@ -79,16 +79,9 @@
che-core-commons-test
test
-
- org.mockito
- mockito-all
- ${org.mockito.version}
- test
-
org.mockito
mockito-core
- ${org.mockito.version}
test
diff --git a/core/commons/che-core-commons-j2ee/pom.xml b/core/commons/che-core-commons-j2ee/pom.xml
index d27d13c2008..f40b40422ef 100644
--- a/core/commons/che-core-commons-j2ee/pom.xml
+++ b/core/commons/che-core-commons-j2ee/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-j2ee
jar
diff --git a/core/commons/che-core-commons-json/pom.xml b/core/commons/che-core-commons-json/pom.xml
index 6356be9187d..734f05dac9c 100644
--- a/core/commons/che-core-commons-json/pom.xml
+++ b/core/commons/che-core-commons-json/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-json
jar
diff --git a/core/commons/che-core-commons-lang/pom.xml b/core/commons/che-core-commons-lang/pom.xml
index 4871cc83e15..94692af9a97 100644
--- a/core/commons/che-core-commons-lang/pom.xml
+++ b/core/commons/che-core-commons-lang/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-lang
jar
@@ -42,11 +42,6 @@
slf4j-api
-
- org.mockito
- mockito-all
- test
-
org.mockito
mockito-core
diff --git a/core/commons/che-core-commons-mail/pom.xml b/core/commons/che-core-commons-mail/pom.xml
index 216f88be287..61771645ef8 100644
--- a/core/commons/che-core-commons-mail/pom.xml
+++ b/core/commons/che-core-commons-mail/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-mail
jar
diff --git a/core/commons/che-core-commons-schedule/pom.xml b/core/commons/che-core-commons-schedule/pom.xml
index 14e7dad981d..4313f60f428 100644
--- a/core/commons/che-core-commons-schedule/pom.xml
+++ b/core/commons/che-core-commons-schedule/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-schedule
jar
diff --git a/core/commons/che-core-commons-test/pom.xml b/core/commons/che-core-commons-test/pom.xml
index 14d791a606e..2712049dbd1 100644
--- a/core/commons/che-core-commons-test/pom.xml
+++ b/core/commons/che-core-commons-test/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-test
jar
diff --git a/core/commons/che-core-commons-xml/pom.xml b/core/commons/che-core-commons-xml/pom.xml
index 1bbacc4c1a8..427911d3186 100644
--- a/core/commons/che-core-commons-xml/pom.xml
+++ b/core/commons/che-core-commons-xml/pom.xml
@@ -16,7 +16,7 @@
che-core-commons-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-commons-xml
jar
diff --git a/core/commons/pom.xml b/core/commons/pom.xml
index 873b2babfcc..6e3adf68cce 100644
--- a/core/commons/pom.xml
+++ b/core/commons/pom.xml
@@ -16,7 +16,7 @@
che-core-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
../pom.xml
che-core-commons-parent
diff --git a/core/pom.xml b/core/pom.xml
index 3cfe8c5e3af..a111497f650 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -16,12 +16,12 @@
che-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
../pom.xml
org.eclipse.che.core
che-core-parent
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
pom
Che Core Parent
diff --git a/dashboard/pom.xml b/dashboard/pom.xml
index 721f3383a1a..57f0bda6c20 100644
--- a/dashboard/pom.xml
+++ b/dashboard/pom.xml
@@ -16,12 +16,12 @@
che-parent
org.eclipse.che
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
../pom.xml
org.eclipse.che.dashboard
che-dashboard-war
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
war
Che Dashboard :: Web App
2015
diff --git a/dockerfiles/cli/version/5.20.0/images b/dockerfiles/cli/version/5.20.0/images
new file mode 100644
index 00000000000..785552e369d
--- /dev/null
+++ b/dockerfiles/cli/version/5.20.0/images
@@ -0,0 +1,7 @@
+IMAGE_INIT=eclipse/che-init:5.20.0
+IMAGE_CHE=eclipse/che-server:5.20.0
+IMAGE_CHE_MULTIUSER=eclipse/che-server-multiuser:5.20.0
+IMAGE_COMPOSE=docker/compose:1.10.1
+IMAGE_TRAEFIK=traefik:v1.3.0-rc3
+IMAGE_POSTGRES=centos/postgresql-96-centos7:9.6
+IMAGE_KEYCLOACK=jboss/keycloak-openshift:3.3.0.CR2-2
diff --git a/dockerfiles/cli/version/5.20.0/images-stacks b/dockerfiles/cli/version/5.20.0/images-stacks
new file mode 100644
index 00000000000..73398d4dd94
--- /dev/null
+++ b/dockerfiles/cli/version/5.20.0/images-stacks
@@ -0,0 +1,23 @@
+eclipse/alpine_jdk8
+eclipse/aspnet
+eclipse/centos_jdk8
+eclipse/cpp_gcc
+eclipse/debian_jdk8
+eclipse/debian_jdk8_node
+eclipse/debian_jre
+eclipse/dotnet_core
+eclipse/hadoop-dev
+eclipse/meteor
+eclipse/node
+eclipse/php
+eclipse/platformio
+eclipse/ruby_rails
+eclipse/selenium
+eclipse/ubuntu_android
+eclipse/ubuntu_go
+eclipse/ubuntu_gradle
+eclipse/ubuntu_jdk8
+eclipse/ubuntu_jre
+eclipse/ubuntu_python
+eclipse/ubuntu_wildfly8
+registry.centos.org/che-stacks/vertx
diff --git a/dockerfiles/cli/version/latest.ver b/dockerfiles/cli/version/latest.ver
index 83a4fb9c4f1..a472b6a4801 100644
--- a/dockerfiles/cli/version/latest.ver
+++ b/dockerfiles/cli/version/latest.ver
@@ -1 +1 @@
-5.18.0
\ No newline at end of file
+5.19.0
\ No newline at end of file
diff --git a/dockerfiles/init/modules/openshift/files/scripts/multi-user/deploy_postgres_and_keycloak.sh b/dockerfiles/init/modules/openshift/files/scripts/multi-user/deploy_postgres_and_keycloak.sh
index 209e6c88846..6ff722efd19 100755
--- a/dockerfiles/init/modules/openshift/files/scripts/multi-user/deploy_postgres_and_keycloak.sh
+++ b/dockerfiles/init/modules/openshift/files/scripts/multi-user/deploy_postgres_and_keycloak.sh
@@ -6,8 +6,6 @@
# http://www.eclipse.org/legal/epl-v10.html
#
-set -e
-
COMMAND_DIR=$(dirname "$0")
"$COMMAND_DIR"/deploy_postgres_only.sh
diff --git a/dockerfiles/init/modules/openshift/files/scripts/multi-user/deploy_postgres_only.sh b/dockerfiles/init/modules/openshift/files/scripts/multi-user/deploy_postgres_only.sh
index 47f79c6eb3b..65287fed937 100755
--- a/dockerfiles/init/modules/openshift/files/scripts/multi-user/deploy_postgres_only.sh
+++ b/dockerfiles/init/modules/openshift/files/scripts/multi-user/deploy_postgres_only.sh
@@ -6,8 +6,6 @@
# http://www.eclipse.org/legal/epl-v10.html
#
-set -e
-
COMMAND_DIR=$(dirname "$0")
oc create -f "$COMMAND_DIR"/che-init-image-stream.yaml
diff --git a/dockerfiles/lib/dto-pom.xml b/dockerfiles/lib/dto-pom.xml
index 083fd8c68db..adc37152d77 100644
--- a/dockerfiles/lib/dto-pom.xml
+++ b/dockerfiles/lib/dto-pom.xml
@@ -17,13 +17,13 @@
maven-depmgt-pom
org.eclipse.che.depmgt
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
dto-typescript
pom
Che TypeScript DTO
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
diff --git a/ide/che-core-dyna-provider-generator-maven-plugin/pom.xml b/ide/che-core-dyna-provider-generator-maven-plugin/pom.xml
index 5992cb69c49..25010b78737 100644
--- a/ide/che-core-dyna-provider-generator-maven-plugin/pom.xml
+++ b/ide/che-core-dyna-provider-generator-maven-plugin/pom.xml
@@ -16,7 +16,7 @@
che-core-ide-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-dyna-provider-generator-maven-plugin
maven-plugin
@@ -92,7 +92,7 @@
org.mockito
- mockito-all
+ mockito-core
test
diff --git a/ide/che-core-ide-api/pom.xml b/ide/che-core-ide-api/pom.xml
index 4e8f9f58d4c..9893347e1af 100644
--- a/ide/che-core-ide-api/pom.xml
+++ b/ide/che-core-ide-api/pom.xml
@@ -16,7 +16,7 @@
che-core-ide-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
org.eclipse.che.core
che-core-ide-api
diff --git a/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/action/DefaultActionGroupTest.java b/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/action/DefaultActionGroupTest.java
index 2e32caa9e90..42ae952ab78 100644
--- a/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/action/DefaultActionGroupTest.java
+++ b/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/action/DefaultActionGroupTest.java
@@ -362,7 +362,6 @@ public void shouldResortAllActionsAfterAddingOne() {
when(actionManager.getId(eq(secondAction))).thenReturn("secondAction");
defaultActionGroup.add(thirdAction, new Constraints(AFTER, "fourthAction"));
- when(actionManager.getId(eq(thirdAction))).thenReturn("thirdAction");
// verify order
Action[] result = defaultActionGroup.getChildren(mock(ActionEvent.class));
@@ -371,7 +370,6 @@ public void shouldResortAllActionsAfterAddingOne() {
// add other actions
defaultActionGroup.add(fourthAction);
- when(actionManager.getId(eq(thirdAction))).thenReturn("thirdAction");
defaultActionGroup.add(fifthAction, Constraints.FIRST);
when(actionManager.getId(eq(fifthAction))).thenReturn("fifthAction");
diff --git a/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/editor/changeintercept/changeintercept/CloseCStyleCommentChangeInterceptorTest.java b/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/editor/changeintercept/changeintercept/CloseCStyleCommentChangeInterceptorTest.java
index 67dd326b971..4901d1465f0 100644
--- a/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/editor/changeintercept/changeintercept/CloseCStyleCommentChangeInterceptorTest.java
+++ b/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/editor/changeintercept/changeintercept/CloseCStyleCommentChangeInterceptorTest.java
@@ -82,9 +82,7 @@ public void testFirstLineNoLeadingSpaces() {
@Test
public void testStartNotEmptyLine() {
- doReturn("whatever").when(document).getLineContent(0);
doReturn("s/*").when(document).getLineContent(1);
- doReturn(" *").when(document).getLineContent(2);
final TextChange input =
new TextChange.Builder()
.from(new TextPosition(1, 3))
@@ -173,8 +171,6 @@ public void testJavadocStyleComment() {
@Test
public void testPasteWholeCommentStart() {
- doReturn("/**").when(document).getLineContent(0);
- doReturn(" *").when(document).getLineContent(1);
final TextChange input =
new TextChange.Builder()
.from(new TextPosition(0, 0))
@@ -187,8 +183,6 @@ public void testPasteWholeCommentStart() {
@Test
public void testCloseComment() {
- doReturn("/**").when(document).getLineContent(0);
- doReturn(" *").when(document).getLineContent(1);
final TextChange input =
new TextChange.Builder()
.from(new TextPosition(0, 0))
diff --git a/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/wizard/AbstractWizardTest.java b/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/wizard/AbstractWizardTest.java
index 574b2582649..d72fc2d20a2 100644
--- a/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/wizard/AbstractWizardTest.java
+++ b/ide/che-core-ide-api/src/test/java/org/eclipse/che/ide/api/wizard/AbstractWizardTest.java
@@ -22,7 +22,7 @@
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
-import org.mockito.runners.MockitoJUnitRunner;
+import org.mockito.junit.MockitoJUnitRunner;
/**
* Testing {@link AbstractWizard}.
@@ -128,11 +128,9 @@ public void testCanCompleteWhenAllPagesIsCompleted() throws Exception {
public void testCanCompleteWhenSomePageIsNotCompleted() throws Exception {
when(page1.isCompleted()).thenReturn(true);
when(page2.isCompleted()).thenReturn(false);
- when(page3.isCompleted()).thenReturn(true);
wizard.addPage(page1);
wizard.addPage(page2);
- wizard.addPage(page3);
assertEquals(false, wizard.canComplete());
}
@@ -189,16 +187,12 @@ public void testHasPreviousUseCase1() throws Exception {
/** In case the wizard has got 3 skipped pages and 1 not skipped page. */
private void prepareTestCase1() {
when(page1.canSkip()).thenReturn(false);
- when(page1.isCompleted()).thenReturn(true);
when(page2.canSkip()).thenReturn(false);
- when(page2.isCompleted()).thenReturn(true);
when(page3.canSkip()).thenReturn(true);
- when(page3.isCompleted()).thenReturn(true);
when(page4.canSkip()).thenReturn(false);
- when(page4.isCompleted()).thenReturn(true);
wizard.addPage(page1);
wizard.addPage(page2);
@@ -250,16 +244,12 @@ public void testHasPreviousUseCase2() throws Exception {
/** In case the wizard has got 2 not skipped pages and 2 skipped page. */
private void prepareTestCase2() {
when(page1.canSkip()).thenReturn(false);
- when(page1.isCompleted()).thenReturn(true);
when(page2.canSkip()).thenReturn(false);
- when(page2.isCompleted()).thenReturn(true);
when(page3.canSkip()).thenReturn(true);
- when(page3.isCompleted()).thenReturn(true);
when(page4.canSkip()).thenReturn(true);
- when(page4.isCompleted()).thenReturn(true);
wizard.addPage(page1);
wizard.addPage(page2);
diff --git a/ide/che-core-ide-app/pom.xml b/ide/che-core-ide-app/pom.xml
index 066f9fbc0b8..819c944f06c 100644
--- a/ide/che-core-ide-app/pom.xml
+++ b/ide/che-core-ide-app/pom.xml
@@ -16,7 +16,7 @@
che-core-ide-parent
org.eclipse.che.core
- 5.19.0-SNAPSHOT
+ 5.20.0-SNAPSHOT
che-core-ide-app
jar
diff --git a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/command/editor/page/goal/GoalPageTest.java b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/command/editor/page/goal/GoalPageTest.java
index 022508fb506..60af36dc51f 100644
--- a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/command/editor/page/goal/GoalPageTest.java
+++ b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/command/editor/page/goal/GoalPageTest.java
@@ -11,7 +11,7 @@
package org.eclipse.che.ide.command.editor.page.goal;
import static org.junit.Assert.assertEquals;
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.nullable;
import static org.mockito.Matchers.anySet;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
@@ -137,14 +137,14 @@ public void shouldCreateGoal() throws Exception {
// given
InputDialog inputDialog = mock(InputDialog.class);
when(dialogFactory.createInputDialog(
- anyString(),
- anyString(),
- anyString(),
+ nullable(String.class),
+ nullable(String.class),
+ nullable(String.class),
eq(0),
eq(0),
- anyString(),
- any(InputCallback.class),
- any(CancelCallback.class)))
+ nullable(String.class),
+ nullable(InputCallback.class),
+ nullable(CancelCallback.class)))
.thenReturn(inputDialog);
String newGoalId = "new goal";
@@ -155,14 +155,14 @@ public void shouldCreateGoal() throws Exception {
ArgumentCaptor inputCaptor = ArgumentCaptor.forClass(InputCallback.class);
verify(dialogFactory)
.createInputDialog(
- anyString(),
- anyString(),
- anyString(),
+ nullable(String.class),
+ nullable(String.class),
+ nullable(String.class),
eq(0),
eq(0),
- anyString(),
+ nullable(String.class),
inputCaptor.capture(),
- isNull(CancelCallback.class));
+ isNull());
verify(inputDialog).show();
inputCaptor.getValue().accepted(newGoalId);
verify(view).setGoal(eq(newGoalId));
diff --git a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/command/explorer/CommandsExplorerPresenterTest.java b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/command/explorer/CommandsExplorerPresenterTest.java
index 80c33782714..75c684c94c4 100644
--- a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/command/explorer/CommandsExplorerPresenterTest.java
+++ b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/command/explorer/CommandsExplorerPresenterTest.java
@@ -13,6 +13,7 @@
import static org.eclipse.che.ide.api.notification.StatusNotification.DisplayMode.EMERGE_MODE;
import static org.eclipse.che.ide.api.notification.StatusNotification.Status.FAIL;
import static org.junit.Assert.assertEquals;
+import static org.mockito.ArgumentMatchers.nullable;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyInt;
import static org.mockito.Matchers.anyString;
@@ -241,7 +242,10 @@ public void shouldRemoveCommand() throws Exception {
// given
ConfirmDialog confirmDialog = mock(ConfirmDialog.class);
when(dialogFactory.createConfirmDialog(
- anyString(), anyString(), any(ConfirmCallback.class), any(CancelCallback.class)))
+ nullable(String.class),
+ nullable(String.class),
+ nullable(ConfirmCallback.class),
+ nullable(CancelCallback.class)))
.thenReturn(confirmDialog);
ArgumentCaptor confirmCallbackCaptor =
ArgumentCaptor.forClass(ConfirmCallback.class);
@@ -249,7 +253,7 @@ public void shouldRemoveCommand() throws Exception {
CommandImpl command = mock(CommandImpl.class);
String cmdName = "build";
when(command.getName()).thenReturn(cmdName);
- when(commandManager.removeCommand(anyString())).thenReturn(voidPromise);
+ when(commandManager.removeCommand(nullable(String.class))).thenReturn(voidPromise);
// when
presenter.onCommandRemove(command);
@@ -257,10 +261,10 @@ public void shouldRemoveCommand() throws Exception {
// then
verify(dialogFactory)
.createConfirmDialog(
- anyString(),
- anyString(),
+ nullable(String.class),
+ nullable(String.class),
confirmCallbackCaptor.capture(),
- isNull(CancelCallback.class));
+ isNull());
confirmCallbackCaptor.getValue().accepted();
verify(confirmDialog).show();
verify(commandManager).removeCommand(cmdName);
@@ -270,7 +274,10 @@ public void shouldRemoveCommand() throws Exception {
public void shouldNotRemoveCommandWhenCancelled() throws Exception {
ConfirmDialog confirmDialog = mock(ConfirmDialog.class);
when(dialogFactory.createConfirmDialog(
- anyString(), anyString(), any(ConfirmCallback.class), any(CancelCallback.class)))
+ nullable(String.class),
+ nullable(String.class),
+ nullable(ConfirmCallback.class),
+ nullable(CancelCallback.class)))
.thenReturn(confirmDialog);
CommandImpl command = mock(CommandImpl.class);
@@ -278,7 +285,10 @@ public void shouldNotRemoveCommandWhenCancelled() throws Exception {
verify(dialogFactory)
.createConfirmDialog(
- anyString(), anyString(), any(ConfirmCallback.class), isNull(CancelCallback.class));
+ nullable(String.class),
+ nullable(String.class),
+ nullable(ConfirmCallback.class),
+ isNull());
verify(confirmDialog).show();
verify(commandManager, never()).removeCommand(anyString());
}
@@ -288,12 +298,15 @@ public void shouldShowNotificationWhenFailedToRemoveCommand() throws Exception {
// given
ConfirmDialog confirmDialog = mock(ConfirmDialog.class);
when(dialogFactory.createConfirmDialog(
- anyString(), anyString(), any(ConfirmCallback.class), any(CancelCallback.class)))
+ nullable(String.class),
+ nullable(String.class),
+ nullable(ConfirmCallback.class),
+ nullable(CancelCallback.class)))
.thenReturn(confirmDialog);
ArgumentCaptor confirmCallbackCaptor =
ArgumentCaptor.forClass(ConfirmCallback.class);
- when(commandManager.removeCommand(anyString())).thenReturn(voidPromise);
+ when(commandManager.removeCommand(nullable(String.class))).thenReturn(voidPromise);
// when
presenter.onCommandRemove(mock(CommandImpl.class));
@@ -301,10 +314,11 @@ public void shouldShowNotificationWhenFailedToRemoveCommand() throws Exception {
// then
verify(dialogFactory)
.createConfirmDialog(
- anyString(),
- anyString(),
+ nullable(String.class),
+ nullable(String.class),
confirmCallbackCaptor.capture(),
- isNull(CancelCallback.class));
+ isNull());
+
confirmCallbackCaptor.getValue().accepted();
verify(voidPromise).catchError(errorOperationCaptor.capture());
diff --git a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/part/editor/EditorPartStackPresenterTest.java b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/part/editor/EditorPartStackPresenterTest.java
index b4470b52311..a077aa72d40 100644
--- a/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/part/editor/EditorPartStackPresenterTest.java
+++ b/ide/che-core-ide-app/src/test/java/org/eclipse/che/ide/part/editor/EditorPartStackPresenterTest.java
@@ -18,6 +18,7 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
+import static org.mockito.ArgumentMatchers.nullable;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.eq;
@@ -146,10 +147,9 @@ public void setUp() {
when(partPresenter3.getEditorInput()).thenReturn(editorInput3);
when(editorInput3.getFile()).thenReturn(file3);
- when(presentationFactory.getPresentation((Action) anyObject())).thenReturn(presentation);
+ when(presentationFactory.getPresentation(nullable(Action.class))).thenReturn(presentation);
- when(eventBus.addHandler((Event.Type