Code example for Attributes2Impl

Methods: isSpecified

0
    ) 
    public void testIsDeclaredString() { 
        // Ordinary cases 
        assertEquals(false, multi.isDeclared("ns1:foo"));
        assertEquals(true, multi.isDeclared("ns1:bar"));
         
        // Not found 
        try { 
            assertFalse(multi.isDeclared("notfound"));
            fail("IllegalArgumentException expected");
        } catch (IllegalArgumentException e) {
            // Expected 
        } 
    } 
 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        method = "isSpecified", 
        args = { int.class } 
    ) 
    public void testIsSpecifiedInt() {