f5394f
From 5393d71f7bf9de06efd763c501486bf14413ab4a Mon Sep 17 00:00:00 2001
f5394f
From: Marian Koncek <mkoncek@redhat.com>
f5394f
Date: Thu, 29 Aug 2019 15:18:53 +0200
f5394f
Subject: [PATCH] Port to hamcrest 2.1
f5394f
f5394f
---
f5394f
 .../tests2/EasyMockSupportClassTest.java       | 18 +++++++++---------
f5394f
 1 file changed, 9 insertions(+), 9 deletions(-)
f5394f
f5394f
diff --git a/core/src/test/java/org/easymock/tests2/EasyMockSupportClassTest.java b/core/src/test/java/org/easymock/tests2/EasyMockSupportClassTest.java
f5394f
index c5dd63b..b8be307 100644
f5394f
--- a/core/src/test/java/org/easymock/tests2/EasyMockSupportClassTest.java
f5394f
+++ b/core/src/test/java/org/easymock/tests2/EasyMockSupportClassTest.java
f5394f
@@ -48,49 +48,49 @@ public class EasyMockSupportClassTest extends EasyMockSupport {
f5394f
     @Test
f5394f
     public void testCreateStrictControl() {
f5394f
         IMocksControl ctrl = createStrictControl();
f5394f
-        assertThat(ctrl.createMock(ToMock.class), is(ToMock.class));
f5394f
+        assertThat(ctrl.createMock(ToMock.class), org.hamcrest.core.Is.isA(ToMock.class));
f5394f
     }
f5394f
 
f5394f
     @Test
f5394f
     public void testCreateControl() {
f5394f
         IMocksControl ctrl = createControl();
f5394f
-        assertThat(ctrl.createMock(ToMock.class), is(ToMock.class));
f5394f
+        assertThat(ctrl.createMock(ToMock.class), org.hamcrest.core.Is.isA(ToMock.class));
f5394f
     }
f5394f
 
f5394f
     @Test
f5394f
     public void testCreateNiceControl() {
f5394f
         IMocksControl ctrl = createNiceControl();
f5394f
-        assertThat(ctrl.createMock(ToMock.class), is(ToMock.class));
f5394f
+        assertThat(ctrl.createMock(ToMock.class), org.hamcrest.core.Is.isA(ToMock.class));
f5394f
     }
f5394f
 
f5394f
     @Test
f5394f
     public void testCreateStrictMockClassOfT() {
f5394f
-        assertThat(createStrictMock(ToMock.class), is(ToMock.class));
f5394f
+        assertThat(createStrictMock(ToMock.class), org.hamcrest.core.Is.isA(ToMock.class));
f5394f
     }
f5394f
 
f5394f
     @Test
f5394f
     public void testCreateStrictMockStringClassOfT() {
f5394f
-        assertThat(createStrictMock("myMock", ToMock.class), is(ToMock.class));
f5394f
+        assertThat(createStrictMock("myMock", ToMock.class), org.hamcrest.core.Is.isA(ToMock.class));
f5394f
     }
f5394f
 
f5394f
     @Test
f5394f
     public void testCreateMockClassOfT() {
f5394f
-        assertThat(createMock(ToMock.class), is(ToMock.class));
f5394f
+        assertThat(createMock(ToMock.class), org.hamcrest.core.Is.isA(ToMock.class));
f5394f
     }
f5394f
 
f5394f
     @Test
f5394f
     public void testCreateMockStringClassOfT() {
f5394f
-        assertThat(createMock("myMock", ToMock.class), is(ToMock.class));
f5394f
+        assertThat(createMock("myMock", ToMock.class), org.hamcrest.core.Is.isA(ToMock.class));
f5394f
     }
f5394f
 
f5394f
     @Test
f5394f
     public void testCreateNiceMockClassOfT() {
f5394f
-        assertThat(createNiceMock(ToMock.class), is(ToMock.class));
f5394f
+        assertThat(createNiceMock(ToMock.class), org.hamcrest.core.Is.isA(ToMock.class));
f5394f
     }
f5394f
 
f5394f
     @Test
f5394f
     public void testCreateNiceMockStringClassOfT() {
f5394f
-        assertThat(createNiceMock("myMock", ToMock.class), is(ToMock.class));
f5394f
+        assertThat(createNiceMock("myMock", ToMock.class), org.hamcrest.core.Is.isA(ToMock.class));
f5394f
     }
f5394f
 
f5394f
     @Test
f5394f
-- 
f5394f
2.21.0
f5394f