Package com.alibaba.citrus.turbine.util.CsrfToken

Examples of com.alibaba.citrus.turbine.util.CsrfToken.DefaultGenerator


    @Test
    public void generateLongLiveToken() throws InterruptedException {
        replay(session);

        DefaultGenerator g1 = new DefaultGenerator();
        DefaultGenerator g2 = new DefaultGenerator();

        String token1 = g1.generateLongLiveToken(session);
        String token2 = g2.generateLongLiveToken(session);

        assertEquals(token1, token2);
        assertNotNull(token1);
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.turbine.util.CsrfToken.DefaultGenerator

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.