From ed528b2b03ac9db6b091ac3f87dec103df912981 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Wed, 5 Sep 2012 12:50:20 +0000 Subject: [PATCH] Make test pass both in the IDE and on CI. SVN: 26517 --- .../cisd/common/utilities/XMLInfraStructureTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 bd3842aa1db..1195f14ac46 100644 --- a/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java +++ b/common/sourceTest/java/ch/systemsx/cisd/common/utilities/XMLInfraStructureTest.java @@ -176,9 +176,9 @@ public class XMLInfraStructureTest extends AssertJUnit fail("Exception expected"); } catch (Exception ex) { - assertEquals("org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 1; " - + "XML document structures must start and end within the same entity.", - ex.toString()); + assertTrue(ex.toString().startsWith("org.xml.sax.SAXParseException")); + assertTrue(ex.toString().contains( + "XML document structures must start and end within the same entity.")); } } } -- GitLab