From c130487d9900e198564b0559da28937616c06208 Mon Sep 17 00:00:00 2001 Date: Tue, 19 Feb 2019 11:11:10 +0000 Subject: [PATCH 6/6] Port to latest versio of Mockito Change-Id: Ie0f6189cc66a8f13d952fa6e9d5c7bf1d39535b5 --- pom.xml | 2 +- .../RepositoryArtifactProviderTest.java | 4 ++-- tycho-bundles/pom.xml | 6 ------ .../tycho-bundles-target.target | 21 +++++++------------ 4 files changed, 11 insertions(+), 22 deletions(-) diff --git a/pom.xml b/pom.xml index 2b34d93..5ddc9eb 100644 --- a/pom.xml +++ b/pom.xml @@ -244,7 +244,7 @@ org.mockito mockito-core - 1.8.4 + 2.23.0 test diff --git a/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/src/test/java/org/eclipse/tycho/repository/p2base/artifact/repository/RepositoryArtifactProviderTest.java b/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/src/test/java/org/eclipse/tycho/repository/p2base/artifact/repository/RepositoryArtifactProviderTest.java index bd897e2..fc5231b 100644 --- a/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/src/test/java/org/eclipse/tycho/repository/p2base/artifact/repository/RepositoryArtifactProviderTest.java +++ b/tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/src/test/java/org/eclipse/tycho/repository/p2base/artifact/repository/RepositoryArtifactProviderTest.java @@ -26,8 +26,8 @@ import static org.hamcrest.CoreMatchers.containsString; import static org.hamcrest.CoreMatchers.hasItem; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.argThat; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.hamcrest.MockitoHamcrest.argThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; diff --git a/tycho-bundles/pom.xml b/tycho-bundles/pom.xml index abc0795..5c45e60 100644 --- a/tycho-bundles/pom.xml +++ b/tycho-bundles/pom.xml @@ -81,12 +81,6 @@ org.eclipse.osgi.compatibility.state 0.0.0 - - - eclipse-plugin - org.hamcrest - 0.0.0 - diff --git a/tycho-bundles/tycho-bundles-target/tycho-bundles-target.target b/tycho-bundles/tycho-bundles-target/tycho-bundles-target.target index b3e58ea..33956d8 100644 --- a/tycho-bundles/tycho-bundles-target/tycho-bundles-target.target +++ b/tycho-bundles/tycho-bundles-target/tycho-bundles-target.target @@ -1,5 +1,5 @@ - + @@ -19,19 +19,14 @@ - - - - - - - + + + + + + - - - - - + -- 2.20.1