Package org.jboss.as.clustering.web

Examples of org.jboss.as.clustering.web.LocalDistributableSessionManager


*/
public class SessionAttributeMarshallerFactoryTest {
    @Test
    public void test() {
        MarshallerFactory marshallerFactory = mock(MarshallerFactory.class);
        LocalDistributableSessionManager manager = mock(LocalDistributableSessionManager.class);
        SessionAttributeMarshallerFactory factory = new SessionAttributeMarshallerFactoryImpl(marshallerFactory);
        ClassResolver resolver = mock(ClassResolver.class);

        when(manager.getApplicationClassResolver()).thenReturn(resolver);

        SessionAttributeMarshaller marshaller = factory.createMarshaller(manager);

        assertNotNull(marshaller);
        assertTrue(marshaller instanceof SessionAttributeMarshallerImpl);
View Full Code Here

TOP

Related Classes of org.jboss.as.clustering.web.LocalDistributableSessionManager

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.