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.Arrays;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
import org.hamcrest.CoreMatchers;
|
||||||
import org.hamcrest.Matcher;
|
import org.hamcrest.Matcher;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.matchers.JUnitMatchers;
|
|
||||||
import org.junit.rules.ExpectedException;
|
import org.junit.rules.ExpectedException;
|
||||||
|
|
||||||
import edu.cornell.mannlib.vitro.testing.AbstractTestClass;
|
import edu.cornell.mannlib.vitro.testing.AbstractTestClass;
|
||||||
|
@ -71,7 +71,7 @@ public class CustomListViewConfigFileTest extends AbstractTestClass {
|
||||||
@Test
|
@Test
|
||||||
public void invalidXml() throws InvalidConfigurationException {
|
public void invalidXml() throws InvalidConfigurationException {
|
||||||
suppressSyserr(); // catch the error report from the XML parser
|
suppressSyserr(); // catch the error report from the XML parser
|
||||||
expectException(JUnitMatchers
|
expectException(CoreMatchers
|
||||||
.containsString("Config file is not valid XML:"));
|
.containsString("Config file is not valid XML:"));
|
||||||
readConfigFile("<unbalancedTag>");
|
readConfigFile("<unbalancedTag>");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue