Search in sources :

Example 11 with DavPropertyName

use of org.apache.jackrabbit.webdav.property.DavPropertyName in project jackrabbit by apache.

the class DavPropertyTest method assertPropertyNames.

private static void assertPropertyNames(DavPropertyNameSet expected, DavPropertyNameSet result) {
    assertEquals(expected.getContentSize(), result.getContentSize());
    if (!(expected.getContent().containsAll(result.getContent()))) {
        StringBuilder missing = new StringBuilder();
        for (DavPropertyName name : expected.getContent()) {
            if (!result.contains(name)) {
                missing.append("- ").append(name.toString()).append('\n');
            }
        }
        fail("Missing properties : \n" + missing);
    }
}
Also used : DavPropertyName(org.apache.jackrabbit.webdav.property.DavPropertyName)

Aggregations

DavPropertyName (org.apache.jackrabbit.webdav.property.DavPropertyName)11 RepositoryException (javax.jcr.RepositoryException)6 Node (javax.jcr.Node)4 DavException (org.apache.jackrabbit.webdav.DavException)4 MultiStatusResponse (org.apache.jackrabbit.webdav.MultiStatusResponse)4 DavProperty (org.apache.jackrabbit.webdav.property.DavProperty)4 IOException (java.io.IOException)3 PropEntry (org.apache.jackrabbit.webdav.property.PropEntry)3 HashMap (java.util.HashMap)2 PathNotFoundException (javax.jcr.PathNotFoundException)2 HttpResponse (org.apache.http.HttpResponse)2 Name (org.apache.jackrabbit.spi.Name)2 HttpPropfind (org.apache.jackrabbit.webdav.client.methods.HttpPropfind)2 DavPropertyNameSet (org.apache.jackrabbit.webdav.property.DavPropertyNameSet)2 DefaultDavProperty (org.apache.jackrabbit.webdav.property.DefaultDavProperty)2 HrefProperty (org.apache.jackrabbit.webdav.property.HrefProperty)2 SupportedPrivilege (org.apache.jackrabbit.webdav.security.SupportedPrivilege)2 Namespace (org.apache.jackrabbit.webdav.xml.Namespace)2 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1