Code example for Set

Methods: containssize

0
        assertFalse(handler.isRequestComplete());
 
        assertEquals("read-resource", handler.getOperationName());
 
        Set<String> argNames = handler.getPropertyNames();
        assertEquals(2, argNames.size());
        assertTrue(argNames.contains("recursive"));
        assertEquals("true", handler.getPropertyValue("recursive"));
        assertTrue(argNames.contains("other"));
    } 
 
    @Test 
    public void testNameValueSeparatorNameAndValueSeparator() throws Exception { 
        DefaultCallbackHandler handler = new DefaultCallbackHandler();
 
        parseOperation(":read-resource(recursive=true,other=", handler);
 
        assertFalse(handler.hasAddress());
        assertTrue(handler.hasOperationName());
        assertTrue(handler.hasProperties());