Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2016-08-19 11:42:10 +0000
committerAlexander Kurtakov2016-08-19 12:12:06 +0000
commite030879f8df927ea658b088d2f8a931464e3283c (patch)
tree3827c190d54dd3d1133285aab602733ecb44a476
parent299875b5dfc4a4be37f51bf8e432747dfe9a1fe5 (diff)
downloadorg.eclipse.linuxtools-e030879f8df927ea658b088d2f8a931464e3283c.tar.gz
org.eclipse.linuxtools-e030879f8df927ea658b088d2f8a931464e3283c.tar.xz
org.eclipse.linuxtools-e030879f8df927ea658b088d2f8a931464e3283c.zip
docker: Call static methods directly.
Fixes few warnings in the workspace. Change-Id: I71c06021cee4c13a4aea9ee603e9cb23e3d43ead Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/79342 Tested-by: Hudson CI
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui.tests/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImagePullSWTBotTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui.tests/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImagePullSWTBotTest.java b/containers/org.eclipse.linuxtools.docker.ui.tests/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImagePullSWTBotTest.java
index 19e8156d9a..2d69be176a 100644
--- a/containers/org.eclipse.linuxtools.docker.ui.tests/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImagePullSWTBotTest.java
+++ b/containers/org.eclipse.linuxtools.docker.ui.tests/src/org/eclipse/linuxtools/internal/docker/ui/wizards/ImagePullSWTBotTest.java
@@ -35,6 +35,7 @@ import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
+import org.mockito.Matchers;
import org.mockito.Mockito;
import com.spotify.docker.client.DockerClient;
@@ -117,8 +118,8 @@ public class ImagePullSWTBotTest {
bot.text(0).setText("jboss/wildfly:latest");
bot.button("Finish").click();
// then
- Mockito.verify(client, Mockito.times(1)).pull(Mockito.eq("jboss/wildfly:latest"),
- Mockito.any(DockerProgressHandler.class));
+ Mockito.verify(client, Mockito.times(1)).pull(Matchers.eq("jboss/wildfly:latest"),
+ Matchers.any(DockerProgressHandler.class));
}
@Test
@@ -135,7 +136,7 @@ public class ImagePullSWTBotTest {
bot.text(0).setText("jboss/wildfly:latest");
bot.button("Finish").click();
// then
- Mockito.verify(client, Mockito.times(1)).pull(Mockito.eq("foo.com/jboss/wildfly:latest"),
- Mockito.any(DockerProgressHandler.class));
+ Mockito.verify(client, Mockito.times(1)).pull(Matchers.eq("foo.com/jboss/wildfly:latest"),
+ Matchers.any(DockerProgressHandler.class));
}
}

Back to the top