Skip to content

Commit f4e73d9

Browse files
committed
Merge branch 'master' into split-unit-tests
2 parents 91f419c + b82ad4b commit f4e73d9

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

‎hamcrest-core/src/test/java/org/hamcrest/core/CombinableTest.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import static org.hamcrest.core.IsEqual.equalTo;
1010
import static org.hamcrest.core.IsNot.not;
1111
import static org.hamcrest.core.IsNull.notNullValue;
12-
import static org.hamcrest.number.OrderingComparison.greaterThan;
1312
import static org.junit.Assert.assertEquals;
1413

1514
public class CombinableTest {
@@ -29,7 +28,6 @@ public void acceptsAndRejectsThreeAnds() {
2928
assertThat(3, not(tripleAnd));
3029
}
3130

32-
3331
@Test
3432
public void bothDescribesItself() {
3533
assertEquals("(not <3> and not <4>)", NOT_3_AND_NOT_4.toString());
@@ -44,7 +42,7 @@ public void eitherAcceptsAndRejects() {
4442

4543
@Test
4644
public void acceptsAndRejectsThreeOrs() {
47-
final CombinableMatcher<Integer> orTriple = EITHER_3_OR_4.or(greaterThan(10));
45+
final CombinableMatcher<Integer> orTriple = EITHER_3_OR_4.or(equalTo(11));
4846
assertThat(11, orTriple);
4947
assertThat(9, not(orTriple));
5048
}

‎hamcrest-core/src/test/java/org/hamcrest/core/IsNotTest.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
*/
33
package org.hamcrest.core;
44

5-
import org.hamcrest.AbstractMatcherTest;
6-
import org.hamcrest.Matcher;
7-
85
import static org.hamcrest.core.IsEqual.equalTo;
6+
import static org.hamcrest.core.IsInstanceOf.instanceOf;
97
import static org.hamcrest.core.IsNot.not;
10-
import static org.hamcrest.number.OrderingComparison.greaterThan;
8+
9+
import org.hamcrest.AbstractMatcherTest;
10+
import org.hamcrest.Matcher;
1111

1212
public class IsNotTest extends AbstractMatcherTest {
1313
@Override
@@ -28,7 +28,7 @@ public void testProvidesConvenientShortcutForNotEqualTo() {
2828
}
2929

3030
public void testUsesDescriptionOfNegatedMatcherWithPrefix() {
31-
assertDescription("not a value greater than <2>", not(greaterThan(2)));
31+
assertDescription("not an instance of java.lang.String", not(instanceOf(String.class)));
3232
assertDescription("not \"A\"", not("A"));
3333
}
3434
}

0 commit comments

Comments
 (0)