Repository: EnMasseProject/enmasse
Pull request #3449 (2019-11-09 17:35:59)

Upgrade hamcrest dependency
### Type of change

<!--

_Select the type of your PR_

-->

- Refactoring


### Description

<!--

_Please describe your pull request_

-->

Upgrade 7years old hamcrest matcher library

### Checklist

<!--

_Please go through this checklist and make sure all applicable tasks have been done_

-->

- [ ] Update/write design documentation in `./documentation/design`
- [ ] Write tests and make sure they pass
- [ ] Update documentation
- [ ] Check RBAC rights for Kubernetes / OpenShift roles
- [x] Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally
- [ ] Reference relevant issue(s) and close them after merging
- [ ] Update CHANGELOG.md


kornys: @enmasse-ci run tests profile=smoke
enmasse-ci: ### :heavy_check_mark: Test Summary :heavy_check_mark:
**TEST_PROFILE**: smoke
**TEST_CASE:** 
**TOTAL:** 3
**PASS:** 3
**FAIL:** 0
**SKIP:** 0


Patch:
diff --git a/amqp-utils/pom.xml b/amqp-utils/pom.xml
index 340bf181d..0bed35c65 100644
--- a/amqp-utils/pom.xml
+++ b/amqp-utils/pom.xml
@@ -40,7 +40,7 @@
     </dependency>
     <dependency>
       <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest-all</artifactId>
+      <artifactId>hamcrest</artifactId>
       <scope>test</scope>
     </dependency>
     <dependency>
diff --git a/api-model/pom.xml b/api-model/pom.xml
index afe0db7f9..fc4b3fdb7 100644
--- a/api-model/pom.xml
+++ b/api-model/pom.xml
@@ -88,7 +88,7 @@
     </dependency>
     <dependency>
       <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest-all</artifactId>
+      <artifactId>hamcrest</artifactId>
       <scope>test</scope>
     </dependency>
   </dependencies>
diff --git a/iot/iot-device-registry-infinispan/pom.xml b/iot/iot-device-registry-infinispan/pom.xml
index 453ae362b..2695bd656 100644
--- a/iot/iot-device-registry-infinispan/pom.xml
+++ b/iot/iot-device-registry-infinispan/pom.xml
@@ -76,7 +76,7 @@
     </dependency>
     <dependency>
       <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest-all</artifactId>
+      <artifactId>hamcrest</artifactId>
     </dependency>
     <dependency>
       <groupId>io.vertx</groupId>
diff --git a/k8s-api/pom.xml b/k8s-api/pom.xml
index 82935e995..9dba4ac80 100644
--- a/k8s-api/pom.xml
+++ b/k8s-api/pom.xml
@@ -45,7 +45,7 @@
     </dependency>
     <dependency>
       <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest-all</artifactId>
+      <artifactId>hamcrest</artifactId>
       <scope>test</scope>
     </dependency>
     <dependency>
diff --git a/pom.xml b/pom.xml
index bfdbe1b17..796bcf773 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,7 +62,7 @@
         <mockito.version>2.21.0</mockito.version>
         <commons-collections.version>3.2.2</commons-collections.version>
         <guava.version>25.0-jre</guava.version>
-        <hamcrest.version>1.3</hamcrest.version>
+        <hamcrest.version>2.2</hamcrest.version>
         <junit.jupiter.version>5.5.0</junit.jupiter.version>
         <junit.platform.runner.version>1.5.0</junit.platform.runner.version>
         <junit.platform.launcher.version>1.5.0</junit.platform.launcher.version>
@@ -622,7 +622,7 @@
 
             <dependency>
                 <groupId>org.hamcrest</groupId>
-                <artifactId>hamcrest-all</artifactId>
+                <artifactId>hamcrest</artifactId>
                 <version>${hamcrest.version}</version>
             </dependency>
 
diff --git a/standard-controller/pom.xml b/standard-controller/pom.xml
index 045c582ef..ee895b062 100644
--- a/standard-controller/pom.xml
+++ b/standard-controller/pom.xml
@@ -65,7 +65,7 @@
     </dependency>
     <dependency>
       <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest-all</artifactId>
+      <artifactId>hamcrest</artifactId>
       <scope>test</scope>
     </dependency>
     <dependency>
diff --git a/topic-forwarder/pom.xml b/topic-forwarder/pom.xml
index 1ab8e2ae6..0643ce21d 100644
--- a/topic-forwarder/pom.xml
+++ b/topic-forwarder/pom.xml
@@ -61,7 +61,7 @@
     </dependency>
     <dependency>
       <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest-all</artifactId>
+      <artifactId>hamcrest</artifactId>
       <scope>test</scope>
     </dependency>
   </dependencies>


Test patch:
diff --git a/systemtests/pom.xml b/systemtests/pom.xml
index 95d2a7150..5f89e4b83 100644
--- a/systemtests/pom.xml
+++ b/systemtests/pom.xml
@@ -120,7 +120,7 @@
         </dependency>
         <dependency>
             <groupId>org.hamcrest</groupId>
-            <artifactId>hamcrest-all</artifactId>
+            <artifactId>hamcrest</artifactId>
         </dependency>
         <dependency>
             <groupId>com.google.code.gson</groupId>