CVS Update: xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests

Aleksander Andrzej Slominski <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
aslom       02/09/08 09:07:51

  Modified:    src/java/tests/org/xmlpull/v1/tests XmlTestCase.java
  Log:
  more versbose output of XML tests
  
  Revision  Changes    Path
  1.4       +7 -6      xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests/XmlTestCase.java
  
  Index: XmlTestCase.java
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests/XmlTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -t -w -r1.3 -r1.4
  --- XmlTestCase.java	2002/09/07 20:39:44	1.3
  +++ XmlTestCase.java	2002/09/08 14:07:51	1.4
  @@ -209,12 +209,13 @@
                   pp.nextText();
               } else if("next-text".equals(action)) {
                   verbose(">>> "+action); //+" on "+testParser.getPositionDescription()+"");
  -                String text = pp.getAttributeValue("", "text");
  +                String expected = pp.getAttributeValue("", "text");
                   String testText = testParser.nextText();
  -                if(text != null) {
  -                    verbose(">>> "+action+" testParser="+testParser.getPositionDescription());
  -                    assertEquals(testParser.getPositionDescription(), printable(text), printable(testText));
  -                    assertEquals(text, testText);
  +                if(expected != null) {
  +                    verbose(">>> "+action+" testParser="+testParser.getPositionDescription()
  +                           +" excpectecd='"+printable(expected)+"' test='"+printable(testText)+"'");
  +                    assertEquals(testParser.getPositionDescription(), printable(expected), printable(testText));
  +                    assertEquals(expected, testText);
                   }
                   pp.nextText();
               } else if("set-feature".equals(action)) {
  @@ -225,7 +226,7 @@
                   verbose(">>> UNKNONW ACTION '"+action+"' ("+pp.getPositionDescription()+")");
                   String content = pp.nextText();
                   if(content.length() > 0) {
  -                    if(verbose) System.err.println(">>> CONTENT:"+content);
  +                    if(verbose) System.err.println(">>> CONTENT='"+printable(content)+"'");
                   }
   
               }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.