Examples of AuthMatch


Examples of com.alibaba.citrus.turbine.auth.impl.AuthMatch

public class AuthMatchTests {
    private AuthMatch match;

    @Test(expected = IllegalArgumentException.class)
    public void create_noPatterns() {
        new AuthMatch(null, new AuthGrant[0]);
    }
View Full Code Here

Examples of com.alibaba.citrus.turbine.auth.impl.AuthMatch

        new AuthMatch(null, new AuthGrant[0]);
    }

    @Test
    public void getPattern() {
        match = new AuthMatch("test", new AuthGrant[0]);
        assertEquals("/test", match.getPattern().getPatternName());
    }
View Full Code Here

Examples of com.alibaba.citrus.turbine.auth.impl.AuthMatch

        assertEquals("/test", match.getPattern().getPatternName());
    }

    @Test
    public void getGrants() {
        match = new AuthMatch("test", new AuthGrant[] { new AuthGrant() });
        assertEquals(1, match.getGrants().length);
    }
View Full Code Here

Examples of com.alibaba.citrus.turbine.auth.impl.AuthMatch

        assertEquals(1, match.getGrants().length);
    }

    @Test
    public void toString_() {
        match = new AuthMatch("test", new AuthGrant[] { new AuthGrant() });

        String s = "";

        s += "Match {\n";
        s += "  pattern = /test\n";
View Full Code Here

Examples of com.alibaba.citrus.turbine.auth.impl.AuthMatch

                match("/**/*.vm", grant(null, "*", "*", null)) //
        });
    }

    private AuthMatch match(String target, AuthGrant... grants) {
        return new AuthMatch(target, grants);
    }
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.