package org.apache.xindice.xml.dom; import junit.framework.Test; import junit.extensions.TestSetup; import org.apache.xindice.xml.SymbolTable; import org.w3c.dom.Document; public class CompressedDOMTests { public static Test suite() throws Exception { return new TestSetup(DOMTests.testSuite("Compressed documents DOM tests")) { public void setUp() { AbstractDOMTest.config = new AbstractDOMTest.DOMTestConfig() { public void setUp() throws Exception { SymbolTable symbols = new SymbolTable(); Document doc = DOMParser.toDocument(xml); this.doc = new DocumentImpl(DOMCompressor.Compress(doc, symbols), symbols, null); root = this.doc.getDocumentElement(); } public void tearDown() throws Exception { } }; } }; } }