Search in sources :

Example 1 with DefaultPropPatchParser

use of io.milton.http.webdav.DefaultPropPatchParser in project lobcder by skoulouzis.

the class DefaultPropPatchParserTest method testGetRequestedFields.

public void testGetRequestedFields() {
    System.out.println(XML_list_property);
    DefaultPropPatchParser parser = new DefaultPropPatchParser();
    ParseResult result = parser.getRequestedFields(new ByteArrayInputStream(XML_list_property.getBytes()));
    assertEquals(1, result.getFieldsToSet().size());
    String s = result.getFieldsToSet().values().iterator().next();
    System.out.println(s);
}
Also used : ParseResult(io.milton.http.webdav.PropPatchRequestParser.ParseResult) ByteArrayInputStream(java.io.ByteArrayInputStream) DefaultPropPatchParser(io.milton.http.webdav.DefaultPropPatchParser)

Aggregations

DefaultPropPatchParser (io.milton.http.webdav.DefaultPropPatchParser)1 ParseResult (io.milton.http.webdav.PropPatchRequestParser.ParseResult)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1