File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ private StrictXML(final Scalar<XML> xml) {
148148
149149 @ Override
150150 public String toString () {
151- return this .origin .toString ();
151+ return this .origin .value (). toString ();
152152 }
153153
154154 @ Override
Original file line number Diff line number Diff line change @@ -133,6 +133,24 @@ void rejectsInvalidXmlUsingXsiSchemaLocation() {
133133 );
134134 }
135135
136+ @ Test
137+ void printsInnerXmlToString () {
138+ final String xml = "<root>just</root>" ;
139+ MatcherAssert .assertThat (
140+ "StrictXML must print inner XML" ,
141+ new StrictXML (
142+ new XMLDocument (xml ),
143+ new XMLDocument (
144+ StringUtils .join (
145+ "<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' >" ,
146+ "<xs:element name='root' type='xs:string'/></xs:schema>"
147+ )
148+ )
149+ ).toString (),
150+ Matchers .containsString (xml )
151+ );
152+ }
153+
136154 @ Test
137155 @ Disabled
138156 void validatesMultipleXmlsInThreads () throws Exception {
You can’t perform that action at this time.
0 commit comments