Package org.apache.woden.internal.xml

Examples of org.apache.woden.internal.xml.TokenAttrImpl


    }
   
    public void testAttributeType() throws Exception
    {
        String attrVal = "#any";
        attr = new TokenAttrImpl(el, qn, attrVal, reporter);
        String expectedQN = qn.toString();
        String actualQN = attr.getAttributeType().toString();
        assertEquals("Expected attribute type qname '" + expectedQN + "' but actual qname was '" + actualQN + "'.",
                expectedQN,
                actualQN );
View Full Code Here


    }
   
    public void testValidToken() throws Exception
    {
        String attrVal = "#any";
        attr = new TokenAttrImpl(el, qn, attrVal, reporter);
        assertTrue("isValid() should return true", attr.isValid());
       
        assertNotNull("getToken() should not return null", attr.getToken());
        assertEquals("Expected attribute value '#any' from getToken(), but actual value was '" + attr.getToken() + "'.",
                   "#any",
View Full Code Here

    }

    public void testNullValue() throws Exception
    {
        String attrVal = null;
        attr = new TokenAttrImpl(el, qn, attrVal, reporter);
       
        ErrorInfo errInfo = (ErrorInfo)handler.errors.get("WSDL508");
        assertNotNull("An error should have been reported", errInfo);
        assertEquals("Error 'WSDL508' expected but error reported was '" + errInfo.getKey() + "'.",
                "WSDL508",
View Full Code Here

TOP

Related Classes of org.apache.woden.internal.xml.TokenAttrImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.