[exo-jcr-commits] exo-jcr SVN: r3343 - jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Oct 25 08:35:03 EDT 2010


Author: dkuleshov
Date: 2010-10-25 08:35:03 -0400 (Mon, 25 Oct 2010)
New Revision: 3343

Modified:
   jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestPropFind.java
Log:
EXOJCR-1012: added checking for PROPFIND 'propname' correct properties' names output

Modified: jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestPropFind.java
===================================================================
--- jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestPropFind.java	2010-10-25 06:31:29 UTC (rev 3342)
+++ jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestPropFind.java	2010-10-25 12:35:03 UTC (rev 3343)
@@ -138,6 +138,8 @@
       String find = outputStream.toString();
       assertTrue(find.contains(authorProp));
       assertTrue(find.contains("D:getlastmodified"));
+      assertFalse(find.contains("jcr:lockOwner"));
+      assertFalse(find.contains("D:lockdiscovery"));
    }
 
    public void testAllProps() throws Exception
@@ -214,11 +216,10 @@
       ByteArrayOutputStream bas = new ByteArrayOutputStream();
       ((PropFindResponseEntity)resp.getEntity()).write(bas);
       String find = new String(bas.toByteArray());
-      assertTrue(!find.contains("jcr:lockOnwer"));
-      assertTrue(!find.contains("D:lockdiscovery"));
+      assertFalse(find.contains("jcr:lockOnwer"));
+      assertFalse(find.contains("D:lockdiscovery"));
    }
    
-   
    public void testPropWithPercent() throws Exception
    {
       String content = TestUtils.getFileContent();



More information about the exo-jcr-commits mailing list