Skip to content

Commit

Permalink
Stop using CoreMatchers -- this disappears in a later version of JUnit.
Browse files Browse the repository at this point in the history
  • Loading branch information
spmiller authored and Team Meerkat committed Sep 23, 2015
1 parent 4fe976d commit a174567
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
11 changes: 8 additions & 3 deletions test/com/googlecode/yatspec/junit/SpecRunnerTest.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
package com.googlecode.yatspec.junit;

import com.googlecode.totallylazy.StringPrintStream;
import org.junit.*;
import org.junit.After;
import org.junit.Assume;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.notification.RunNotifier;

import java.io.PrintStream;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.not;

public class SpecRunnerTest {
private StringPrintStream standardOutStream;
Expand Down
4 changes: 3 additions & 1 deletion test/com/googlecode/yatspec/junit/TableExampleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import org.junit.Test;
import org.junit.runner.RunWith;

import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;

@RunWith(SpecRunner.class)
public class TableExampleTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import java.nio.file.Paths;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNot.not;
import static org.hamcrest.core.IsNull.nullValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

import org.junit.Test;

import java.util.Map;

import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.collection.IsMapContaining.hasEntry;
import static org.hamcrest.Matchers.containsString;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;

Expand Down

0 comments on commit a174567

Please sign in to comment.