Package com.alibaba.citrus.service.requestcontext.session.idgen.random.impl

Examples of com.alibaba.citrus.service.requestcontext.session.idgen.random.impl.RandomIDGenerator


    @Test
    public void random_id() {
        service = (RequestContextChainingServiceImpl) factory.getBean("rc2");
        SessionRequestContextFactoryImpl f = getFactory(service, SessionRequestContextFactoryImpl.class);
        SessionConfig config = f.getConfig();
        RandomIDGenerator rid = (RandomIDGenerator) config.getId().getGenerator();

        assertEquals(16, rid.getLength());
    }
View Full Code Here


    @Test
    public void random_id() {
        service = (RequestContextChainingServiceImpl) factory.getBean("rc2");
        SessionRequestContextFactoryImpl f = getFactory(service, SessionRequestContextFactoryImpl.class);
        SessionConfig config = f.getConfig();
        RandomIDGenerator rid = (RandomIDGenerator) config.getId().getGenerator();

        assertEquals(16, rid.getLength());
    }
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.requestcontext.session.idgen.random.impl.RandomIDGenerator

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.