undeclared var in generated test.

"Jeroen van Rotterdam" <[email protected]>
Newsgroups gmane.comp.web.dom.test-suites.general
Message-ID <[email protected]>
Hi,

Below is a generated test (draft).
setStringData says that stringDoc is undeclared.
I'm probably missing something trivial here.

any idea ?

jeroen





/**
* DOM Builder test
* @author X-Hive Corporation
* @author X-Hive Corporation
* @see <a href=""></a>
*/
public class DOMBuilderTest extends DOMTestCase {

   public DOMBuilderTest(DOMTestDocumentBuilderFactory factory)
 {
      super(factory);

   }

   public void runTest() throws java.lang.Throwable {
      DOMImplementation implementation;
      DOMImplementationLS lsImplementation;
      DOMInputSource inputSource;
      Document document;
      DOMWriter writer;
      DOMBuilder builder;
      String testfile1 = "test1.xml";
      short mode = MODE_SYNCHRONOUS;
      String schemaType = null;
      builder = lsImplementation.createDOMBuilder(((unsigned
      short)/*short*/mode),schemaType);      writer = lsImplementation.createDOMWriter();
      inputSource = lsImplementation.createDOMInputSource();
      NodeList elementList;
      String stringDoc;
      document = builder.parseURI(testfile1);
      elementList = document.getElementsByTagName("a");
      assertSize("elementGetElementsByTagNameAssert",2,elementList);
      stringDoc = writer.writeToString(document);
      inputSource.setStringData(/* undeclared */stringDoc);
      document = builder.parseURI(testfile1);
      assertSize("elementGetElementsByTagNameAssert",2,elementList);

   }
   public String getTargetURI() {
      return
      "http://www.w3.org/2001/DOM-Test-Suite/level3/ls/DOMBuilderTest";   }
   public static void main(String[] args) {
        DOMTestCase.doMain(DOMBuilderTest.class,args);
   }
}

=====
X-Hive Corporation
Jeroen van Rotterdam, CEO
e-mail: [email protected]
phone: +31 10 7108600
http://www.x-hive.com
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.