use of org.codice.ddf.parser.Parser in project ddf by codice.
the class TestGml3ToWktImpl method testBadParser.
@Test(expected = ValidationException.class)
public void testBadParser() throws ParserException, ValidationException {
Parser parser = mock(XmlParser.class);
when(parser.configureParser(anyList(), any(ClassLoader.class))).thenCallRealMethod();
when(parser.unmarshal(any(ParserConfigurator.class), any(Class.class), any(InputStream.class))).thenThrow(new ParserException());
gtw = new Gml3ToWktImpl(parser);
gtw.convert(createGmlPoint(0, 0));
}
Aggregations