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

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


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

        Matcher matcher = new AttributeMatcher(null, "local", constraintMock);
        MatcherResult actual = matcher.matches(matcherContextMock);
        assertEquals("Wrong result", MatcherResult.MATCHED, actual);
    }
View Full Code Here


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

        Matcher matcher = new AttributeMatcher(null, "local", constraintMock);
        MatcherResult actual = matcher.matches(matcherContextMock);
        assertEquals("Wrong result", MatcherResult.FAILED, actual);
    }
View Full Code Here

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

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

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

        Matcher matcher = new NamespaceMatcher("abc");
        MatcherResult actual = matcher.matches(matcherContextMock);
        assertEquals("Wrong result", MatcherResult.FAILED, actual);
    }
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

        // =====================================================================
        //   Test Expectations
        // =====================================================================
        DefaultNamespaceMatcher matcher = new DefaultNamespaceMatcher();
        MatcherResult result;

        // CDM namespace should match.
        matcherContextMock.expects.getNamespace()
                .returns(XDIMESchemata.CDM_NAMESPACE);
        result = matcher.matches(matcherContextMock);
View Full Code Here

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

        MatcherResult actual = sequence.matches(matcherContextMock);
        assertEquals("Wrong result", expected, actual);
    }
View Full Code Here

                "MatcherContext", expectations);

        matcherContextMock.expects.getElementId().returns(10);

        InlineStyleMatcher matcher = new InlineStyleMatcher(10);
        MatcherResult matcherResult =
                matcher.matchesWithinContext(matcherContextMock);

        assertEquals("MatcherResult should be MATCHED",
                MatcherResult.MATCHED, matcherResult);
    }
View Full Code Here

                "MatcherContext", expectations);

        matcherContextMock.expects.getElementId().returns(1);

        InlineStyleMatcher matcher = new InlineStyleMatcher(10);
        MatcherResult matcherResult =
                matcher.matchesWithinContext(matcherContextMock);

        assertEquals("MatcherResult should be FAILED",
                MatcherResult.FAILED, matcherResult);
    }
View Full Code Here

TOP

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

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.