Examples of UUIDScopeMatchStrategy


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

        assertFalse(strategy.match(a,c));
        assertFalse(strategy.match(a,e));
    }

    public void testUUIDStrategy() {
        ScopeMatchStrategy strategy = new UUIDScopeMatchStrategy();
        String uuid = UUID.randomUUID().toString();
        String uuid2 = UUID.randomUUID().toString();
        assertTrue(strategy.match(new URI[] {URI.create(uuid)}, new URI[] {URI.create(uuid)}));
        assertFalse(strategy.match(new URI[] {URI.create(uuid)}, new URI[] {URI.create(uuid2)}));
    }
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.