Package org.wso2.carbon.discovery.search

Examples of org.wso2.carbon.discovery.search.ScopeMatchStrategy.match()


    public void testStrCmpStrategy() {
        ScopeMatchStrategy strategy = new StrCmpScopeMatchStrategy();
        assertTrue(strategy.match(a,a));
        assertTrue(strategy.match(f,g));
        assertFalse(strategy.match(a,c));
        assertFalse(strategy.match(a,e));
    }

    public void testUUIDStrategy() {
        ScopeMatchStrategy strategy = new UUIDScopeMatchStrategy();
View Full Code Here


    public void testStrCmpStrategy() {
        ScopeMatchStrategy strategy = new StrCmpScopeMatchStrategy();
        assertTrue(strategy.match(a,a));
        assertTrue(strategy.match(f,g));
        assertFalse(strategy.match(a,c));
        assertFalse(strategy.match(a,e));
    }

    public void testUUIDStrategy() {
        ScopeMatchStrategy strategy = new UUIDScopeMatchStrategy();
        String uuid = UUID.randomUUID().toString();
View Full Code Here

    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

    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.