public void testAllPropertyNames() throws Exception {
// request
Propfind propfind = new Propfind();
propfind.setPropname(new Propname());
Multistatus multistatus = propfind(propfind, WebDAVCollectionResource.PATH, -1);
// responses - depth is 1 so we have 1 + number of entries
Map<String, Response> responses = multistatus.getResponsesAsMapByHref();
Assert.assertEquals(1 + WebDAVDocumentResource.ENTRY_NUMBER, responses.size());
// collection
Response response = responses.get(WebDAVCollectionResource.PATH);
Assert.assertNotNull(response);
checkCollectionPropertyNames(response);
// entries
for (int i = 1; i <= WebDAVDocumentResource.ENTRY_NUMBER; i++) {
String path = WebDAVCollectionResource.PATH + "/" + i;
response = multistatus.getResponseByHref(path);
Assert.assertNotNull(response);
checkDocumentPropertyNames(response);
}
}