Examples of RFC3986ScopeMatchStrategy


Examples of org.wso2.carbon.discovery.search.RFC3986ScopeMatchStrategy

    URI[] e = new URI[] {URI.create("http://wso2.com/carbon/ws/discovery")};
    URI[] f = new URI[] {URI.create("http://wso2.org/")};
    URI[] g = new URI[] {URI.create("http://wso2.org/")};

    public void testRFC3986Strategy() {
        ScopeMatchStrategy strategy = new RFC3986ScopeMatchStrategy();
        assertTrue(strategy.match(a,b));
        assertTrue(strategy.match(a,c));
        assertTrue(strategy.match(b,c));
        assertFalse(strategy.match(a,d));
        assertFalse(strategy.match(a,e));
        assertTrue(strategy.match(a,f));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.