Package org.jboss.as.clustering.web

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


        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


    public void testField() {
        this.test(ReplicationGranularity.FIELD, CoarseSessionAttributeStorage.class);
    }

    private void test(ReplicationGranularity granularity, Class<? extends SessionAttributeStorage<?>> expectedClass) {
        SessionAttributeMarshaller marshaller = mock(SessionAttributeMarshaller.class);

        SessionAttributeStorageFactory factory = new SessionAttributeStorageFactoryImpl();

        try {
            SessionAttributeStorage<?> storage = factory.createStorage(granularity, marshaller);
View Full Code Here

TOP

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

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.