Remove call to deprecated JUmitMatchers method.
This commit is contained in:
parent
4b71c1d6bb
commit
75fff3ee54
1 changed files with 2 additions and 2 deletions
|
@ -10,10 +10,10 @@ import java.io.StringReader;
|
|||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
|
||||
import org.hamcrest.CoreMatchers;
|
||||
import org.hamcrest.Matcher;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.matchers.JUnitMatchers;
|
||||
import org.junit.rules.ExpectedException;
|
||||
|
||||
import edu.cornell.mannlib.vitro.testing.AbstractTestClass;
|
||||
|
@ -71,7 +71,7 @@ public class CustomListViewConfigFileTest extends AbstractTestClass {
|
|||
@Test
|
||||
public void invalidXml() throws InvalidConfigurationException {
|
||||
suppressSyserr(); // catch the error report from the XML parser
|
||||
expectException(JUnitMatchers
|
||||
expectException(CoreMatchers
|
||||
.containsString("Config file is not valid XML:"));
|
||||
readConfigFile("<unbalancedTag>");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue