e6e722
From 613f27fe7ff4a89c21689a16f6f6b9b3e0b7c347 Mon Sep 17 00:00:00 2001
e6e722
From: Marian Koncek <mkoncek@redhat.com>
e6e722
Date: Thu, 29 Aug 2019 15:04:46 +0200
e6e722
Subject: [PATCH] Port to hamcrest 2.1
e6e722
e6e722
---
e6e722
 .../shared/utils/reflection/ReflectorTest.java     | 14 +++++++-------
e6e722
 1 file changed, 7 insertions(+), 7 deletions(-)
e6e722
e6e722
diff --git a/src/test/java/org/apache/maven/shared/utils/reflection/ReflectorTest.java b/src/test/java/org/apache/maven/shared/utils/reflection/ReflectorTest.java
e6e722
index 0088361..09f6048 100644
e6e722
--- a/src/test/java/org/apache/maven/shared/utils/reflection/ReflectorTest.java
e6e722
+++ b/src/test/java/org/apache/maven/shared/utils/reflection/ReflectorTest.java
e6e722
@@ -50,7 +50,7 @@ public class ReflectorTest
e6e722
     public void newInstanceClassNull()
e6e722
         throws Exception
e6e722
     {
e6e722
-        assertThat( reflector.newInstance( Object.class, null ), is( Object.class ) );
e6e722
+        assertThat( reflector.newInstance( Object.class, null ), isA( Object.class ) );
e6e722
     }
e6e722
 
e6e722
     @Test( expected = NullPointerException.class )
e6e722
@@ -64,7 +64,7 @@ public class ReflectorTest
e6e722
     public void newInstanceClassEmptyArray()
e6e722
         throws Exception
e6e722
     {
e6e722
-        assertThat( reflector.newInstance( Object.class, new Object[0] ), is( Object.class ) );
e6e722
+        assertThat( reflector.newInstance( Object.class, new Object[0] ), isA( Object.class ) );
e6e722
     }
e6e722
 
e6e722
     @Test( expected = ReflectorException.class )
e6e722
@@ -156,7 +156,7 @@ public class ReflectorTest
e6e722
     public void getSingletonClassNull()
e6e722
         throws Exception
e6e722
     {
e6e722
-        assertThat( reflector.getSingleton( (Class)Object.class, (Object)null ), is( Object.class ) );
e6e722
+        assertThat( reflector.getSingleton( (Class)Object.class, (Object)null ), isA( Object.class ) );
e6e722
     }
e6e722
 
e6e722
     @Test( expected = NullPointerException.class )
e6e722
@@ -170,7 +170,7 @@ public class ReflectorTest
e6e722
     public void getSingletonClassEmptyArray()
e6e722
         throws Exception
e6e722
     {
e6e722
-        assertThat( reflector.getSingleton( Object.class, new Object[0] ), is( Object.class ) );
e6e722
+        assertThat( reflector.getSingleton( Object.class, new Object[0] ), isA( Object.class ) );
e6e722
     }
e6e722
 
e6e722
     @Test( expected = ReflectorException.class )
e6e722
@@ -787,7 +787,7 @@ public class ReflectorTest
e6e722
     public void invokeStaticClassNullNull()
e6e722
         throws Exception
e6e722
     {
e6e722
-        assertThat( reflector.invokeStatic( Object.class, (String)null, (Object)null ), is( Object.class ) );
e6e722
+        assertThat( reflector.invokeStatic( Object.class, (String)null, (Object)null ), isA( Object.class ) );
e6e722
     }
e6e722
 
e6e722
     @Test( expected = NullPointerException.class )
e6e722
@@ -801,7 +801,7 @@ public class ReflectorTest
e6e722
     public void invokeStaticClassNullEmptyArray()
e6e722
         throws Exception
e6e722
     {
e6e722
-        assertThat( reflector.invokeStatic( Object.class, null, new Object[0] ), is( Object.class ) );
e6e722
+        assertThat( reflector.invokeStatic( Object.class, null, new Object[0] ), isA( Object.class ) );
e6e722
     }
e6e722
 
e6e722
     @Test( expected = NullPointerException.class )
e6e722
@@ -829,7 +829,7 @@ public class ReflectorTest
e6e722
     public void invokeStaticClassEmptyEmptyArray()
e6e722
         throws Exception
e6e722
     {
e6e722
-        assertThat( reflector.invokeStatic( Object.class, "", new Object[0] ), is( Object.class ) );
e6e722
+        assertThat( reflector.invokeStatic( Object.class, "", new Object[0] ), isA( Object.class ) );
e6e722
     }
e6e722
 
e6e722
     @Test( expected = IllegalArgumentException.class )
e6e722
-- 
e6e722
2.21.0
e6e722