@Before
public void setup() throws URISyntaxException, ParseException {
- bazModule = QNameModule.create(new URI("baz-namespace"), SimpleDateFormatUtil.getRevisionFormat().parse
- ("1970-01-01"));
+ bazModule = QNameModule.create(new URI("baz-namespace"), SimpleDateFormatUtil.getRevisionFormat().parse(
+ "1970-01-01"));
outerContainer = QName.create(bazModule, "outer-container");
xmlParser.parse(reader);
fail("XMLStreamException should have been thrown because of unterminated leaf element.");
} catch (XMLStreamException ex) {
- assertTrue(ex.getMessage().contains("elementGetText() function expects text only elment but " +
- "START_ELEMENT was encountered."));
+ assertTrue(ex.getMessage().contains("elementGetText() function expects text only elment but "
+ + "START_ELEMENT was encountered."));
}
}
xmlParser.parse(reader);
fail("XMLStreamException should have been thrown because of unterminated leaf element.");
} catch (XMLStreamException ex) {
- assertTrue(ex.getMessage().contains("The element type \"my-leaf-1\" must be terminated by the matching " +
- "end-tag \"</my-leaf-1>\"."));
+ assertTrue(ex.getMessage().contains("The element type \"my-leaf-1\" must be terminated by the matching "
+ + "end-tag \"</my-leaf-1>\"."));
}
}
xmlParser.parse(reader);
fail("XMLStreamException should have been thrown because of unterminated container element.");
} catch (XMLStreamException ex) {
- assertTrue(ex.getMessage().contains("The element type \"my-container-1\" must be terminated by the " +
- "matching end-tag \"</my-container-1>\"."));
+ assertTrue(ex.getMessage().contains("The element type \"my-container-1\" must be terminated by the "
+ + "matching end-tag \"</my-container-1>\"."));
}
}
xmlParser.parse(reader);
fail("IllegalStateException should have been thrown because of an unexisting container element.");
} catch (IllegalStateException ex) {
- assertTrue(ex.getMessage().contains("Schema for node with name my-container-1 and namespace baz-namespace" +
- " doesn't exist."));
+ assertTrue(ex.getMessage().contains("Schema for node with name my-container-1 and namespace baz-namespace"
+ + " doesn't exist."));
}
}