Package org.jboss.as.clustering.web

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


    @Test
    public void store() throws IOException {
        @SuppressWarnings("unchecked")
        Map<Object, Object> map = mock(Map.class);
        OutgoingSessionGranularitySessionData data = mock(OutgoingSessionGranularitySessionData.class);
        Map<String, Object> attributes = Collections.emptyMap();
        Object marshalledAttributes = new Object();

        when(data.getSessionAttributes()).thenReturn(attributes);
        when(this.marshaller.marshal(attributes)).thenReturn(marshalledAttributes);

        this.storage.store(map, data);

        verify(map).put(eq((byte) SessionMapEntry.ATTRIBUTES.ordinal()), same(marshalledAttributes));
View Full Code Here


    @Test
    public void storeNull() throws IOException {
        @SuppressWarnings("unchecked")
        Map<Object, Object> map = mock(Map.class);
        OutgoingSessionGranularitySessionData data = mock(OutgoingSessionGranularitySessionData.class);

        when(data.getSessionAttributes()).thenReturn(null);

        this.storage.store(map, data);

        verifyZeroInteractions(map);
    }
View Full Code Here

TOP

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

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.