You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2013/01/13 13:12:52 UTC
svn commit: r1432599 - in
/xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests:
IDConstraintTests.java JiraBugsTests.java
Author: mukulg
Date: Sun Jan 13 12:12:52 2013
New Revision: 1432599
URL: http://svn.apache.org/viewvc?rev=1432599&view=rev
Log:
making few updates to test cases for recent implementation changes for Jira issue, 1594
Modified:
xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/IDConstraintTests.java
xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/JiraBugsTests.java
Modified: xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/IDConstraintTests.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/IDConstraintTests.java?rev=1432599&r1=1432598&r2=1432599&view=diff
==============================================================================
--- xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/IDConstraintTests.java (original)
+++ xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/IDConstraintTests.java Sun Jan 13 12:12:52 2013
@@ -303,13 +303,10 @@ public class IDConstraintTests extends X
Validator v = s.newValidator();
v.setErrorHandler(this);
v.validate(new StreamSource(xmlfile));
- assertTrue(failureList.size() == 2);
+ assertTrue(failureList.size() == 1);
// test expected error messages
List expectedMsgList = new ArrayList();
FailureMesgFragments mesgFragments = new FailureMesgFragments();
- mesgFragments.setMessageFragment("cvc-identity-constraint.4.3.b: Not enough values specified for <keyref name=\"newKeyref\"> identity constraint specified for element \"Sub_1a\"");
- expectedMsgList.add(mesgFragments);
- mesgFragments = new FailureMesgFragments();
mesgFragments.setMessageFragment("the keyref identity constraint \"newKeyref\" refers to a key or unique that is out of scope");
expectedMsgList.add(mesgFragments);
assertTrue(areErrorMessagesConsistent(expectedMsgList));
@@ -327,13 +324,10 @@ public class IDConstraintTests extends X
Validator v = s.newValidator();
v.setErrorHandler(this);
v.validate(new StreamSource(xmlfile));
- assertTrue(failureList.size() == 2);
+ assertTrue(failureList.size() == 1);
// test expected error messages
List expectedMsgList = new ArrayList();
FailureMesgFragments mesgFragments = new FailureMesgFragments();
- mesgFragments.setMessageFragment("cvc-identity-constraint.4.3.b: Not enough values specified for <keyref name=\"keyref\"> identity constraint specified for element \"personnel\"");
- expectedMsgList.add(mesgFragments);
- mesgFragments = new FailureMesgFragments();
mesgFragments.setMessageFragment("cvc-identity-constraint.4.3: Key 'keyref' with value '1' not found for identity constraint of element 'personnel'");
expectedMsgList.add(mesgFragments);
assertTrue(areErrorMessagesConsistent(expectedMsgList));
Modified: xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/JiraBugsTests.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/JiraBugsTests.java?rev=1432599&r1=1432598&r2=1432599&view=diff
==============================================================================
--- xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/JiraBugsTests.java (original)
+++ xerces/java/branches/xs-1.1-tests/src/org/apache/xerces/tests/JiraBugsTests.java Sun Jan 13 12:12:52 2013
@@ -117,7 +117,7 @@ public class JiraBugsTests extends Xerce
Validator v = s.newValidator();
v.setErrorHandler(this);
v.validate(new StreamSource(xmlfile));
- assertTrue(failureList.size() == 2);
+ assertTrue(failureList.size() == 1);
// test expected error messages
List expectedMsgList = new ArrayList();
FailureMesgFragments mesgFragments = new FailureMesgFragments();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org