Skip to content
Snippets Groups Projects
Commit 8f4f67ae authored by brinn's avatar brinn
Browse files

Fix: test expectations.

SVN: 24266
parent 19316d06
No related branches found
No related tags found
No related merge requests found
...@@ -156,7 +156,7 @@ public class XMLInfraStructureTest extends AssertJUnit ...@@ -156,7 +156,7 @@ public class XMLInfraStructureTest extends AssertJUnit
fail("Exception expected"); fail("Exception expected");
} catch (Exception ex) } catch (Exception ex)
{ {
assertTrue(ex.getMessage(), ex.getMessage().indexOf( assertTrue(ex.toString(), ex.toString().indexOf(
"org.xml.sax.SAXException: XML validation errors:\n" "org.xml.sax.SAXException: XML validation errors:\n"
+ "Error in line 9 column 10:cvc-complex-type.2.4.b: " + "Error in line 9 column 10:cvc-complex-type.2.4.b: "
+ "The content of element 'n:note' is not complete. ") >= 0); + "The content of element 'n:note' is not complete. ") >= 0);
...@@ -176,7 +176,7 @@ public class XMLInfraStructureTest extends AssertJUnit ...@@ -176,7 +176,7 @@ public class XMLInfraStructureTest extends AssertJUnit
} catch (Exception ex) } catch (Exception ex)
{ {
assertEquals("org.xml.sax.SAXParseException: XML document structures must start " assertEquals("org.xml.sax.SAXParseException: XML document structures must start "
+ "and end within the same entity.", ex.getMessage()); + "and end within the same entity.", ex.toString());
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment