vgritsenko    2003/12/23 18:50:14

  Modified:    java/tests/src/org/apache/xindice/integration/client/resources
                        BinaryResourceTest.java
  Log:
  Make binary resource test work
  
  Revision  Changes    Path
  1.2       +13 -1     
xml-xindice/java/tests/src/org/apache/xindice/integration/client/resources/BinaryResourceTest.java
  
  Index: BinaryResourceTest.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xindice/java/tests/src/org/apache/xindice/integration/client/resources/BinaryResourceTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BinaryResourceTest.java   23 Dec 2003 12:13:41 -0000      1.1
  +++ BinaryResourceTest.java   24 Dec 2003 02:50:14 -0000      1.2
  @@ -60,6 +60,8 @@
   package org.apache.xindice.integration.client.resources;
   
   import org.apache.xindice.integration.client.AbstractXmlDbClientTest;
  +import org.apache.xindice.integration.client.XmlDbClientSetup;
  +import org.apache.xindice.xml.dom.DOMParser;
   
   import org.xmldb.api.base.Collection;
   import org.xmldb.api.base.Resource;
  @@ -68,6 +70,16 @@
   /**
    */
   public class BinaryResourceTest extends AbstractXmlDbClientTest {
  +
  +    public void setUp() throws Exception {
  +        String name = "current";
  +        // Override super.setUp(): Need inline meta. See 
client.createCollection(String, String)
  +        String cfg
  +                = "<collection compressed=\"true\" name=\"" + name + "\" 
inline-metadata=\"true\">"
  +                + "   <filer 
class=\"org.apache.xindice.core.filer.BTreeFiler\" gzip=\"true\"/>"
  +                + "</collection>";
  +        this.client.createCollection(XmlDbClientSetup.INSTANCE_NAME + "/" + 
XmlDbClientSetup.TEST_COLLECTION_NAME, name, DOMParser.toDocument(cfg));
  +    }
   
        public void testRoundTrip() throws Exception {
                Collection collection = 
client.getCollection(TEST_COLLECTION_PATH);
  
  
  

Reply via email to