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