From 8f4f67ae6cd5db7b3d394957d41a44f8a8b97a89 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Mon, 23 Jan 2012 07:56:01 +0000 Subject: [PATCH] Fix: test expectations. SVN: 24266 --- .../systemsx/cisd/common/utilities/XMLInfraStructureTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java b/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java index 2b51a43bbe2..664163c4c50 100644 --- a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java +++ b/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java @@ -156,7 +156,7 @@ public class XMLInfraStructureTest extends AssertJUnit fail("Exception expected"); } catch (Exception ex) { - assertTrue(ex.getMessage(), ex.getMessage().indexOf( + assertTrue(ex.toString(), ex.toString().indexOf( "org.xml.sax.SAXException: XML validation errors:\n" + "Error in line 9 column 10:cvc-complex-type.2.4.b: " + "The content of element 'n:note' is not complete. ") >= 0); @@ -176,7 +176,7 @@ public class XMLInfraStructureTest extends AssertJUnit } catch (Exception ex) { 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()); } } } -- GitLab