Skip to content

Commit 17afb07

Browse files
committed
DATAMONGO-1416 - Polishing.
Just use instanceOf(…) from Hamcrest's Matchers class instead of dedicated class. Original pull request: #362.
1 parent b407963 commit 17afb07

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/convert/MongoConvertersUnitTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515
*/
1616
package org.springframework.data.mongodb.core.convert;
1717

18-
import static org.hamcrest.CoreMatchers.*;
18+
import static org.hamcrest.Matchers.*;
1919
import static org.junit.Assert.*;
2020

2121
import java.math.BigDecimal;
2222
import java.util.Currency;
2323
import java.util.concurrent.atomic.AtomicInteger;
2424
import java.util.concurrent.atomic.AtomicLong;
2525

26-
import org.hamcrest.core.IsInstanceOf;
2726
import org.junit.Test;
2827
import org.springframework.data.geo.Box;
2928
import org.springframework.data.geo.Circle;
@@ -169,14 +168,14 @@ public void convertsAtomicIntegerToIntegerCorrectly() {
169168
*/
170169
@Test
171170
public void convertsLongToAtomicLongCorrectly() {
172-
assertThat(LongToAtomicLongConverter.INSTANCE.convert(100L), IsInstanceOf.instanceOf(AtomicLong.class));
171+
assertThat(LongToAtomicLongConverter.INSTANCE.convert(100L), is(instanceOf(AtomicLong.class)));
173172
}
174173

175174
/**
176175
* @see DATAMONGO-1416
177176
*/
178177
@Test
179178
public void convertsIntegerToAtomicIntegerCorrectly() {
180-
assertThat(IntegerToAtomicIntegerConverter.INSTANCE.convert(100), IsInstanceOf.instanceOf(AtomicInteger.class));
179+
assertThat(IntegerToAtomicIntegerConverter.INSTANCE.convert(100), is(instanceOf(AtomicInteger.class)));
181180
}
182181
}

0 commit comments

Comments
 (0)