Package com.volantis.styling.impl.engine.matchers

Examples of com.volantis.styling.impl.engine.matchers.LocalNameMatcher


    /**
     * Test that a null is not allowed.
     */
    public void testNullFails() {
        try {
            new LocalNameMatcher(null);
            fail("Null namespace not detected");
        } catch (IllegalArgumentException e) {
            assertEquals("Error message incorrect",
                         "localName cannot be null",
                         e.getMessage());
View Full Code Here


        // =====================================================================
        //   Test Expectations
        // =====================================================================

        Matcher matcher = new LocalNameMatcher("xyz");
        MatcherResult actual = matcher.matches(matcherContextMock);
        assertEquals("Wrong result", MatcherResult.MATCHED, actual);
    }
View Full Code Here

        // =====================================================================
        //   Test Expectations
        // =====================================================================

        Matcher matcher = new LocalNameMatcher("abc");
        MatcherResult actual = matcher.matches(matcherContextMock);
        assertEquals("Wrong result", MatcherResult.FAILED, actual);
    }
View Full Code Here

        return UNIVERSAL_MATCHER;
    }

    // Javadoc inherited.
    public SimpleMatcher createLocalNameMatcher(String localName) {
        return new LocalNameMatcher(localName);
    }
View Full Code Here

TOP

Related Classes of com.volantis.styling.impl.engine.matchers.LocalNameMatcher

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.