Class MockSession

    • Constructor Detail

      • MockSession

        public MockSession()
    • Method Detail

      • getAttribute

        public <T> T getAttribute​(java.lang.String name)
        Description copied from interface: Session
        Returns for the given session attribute name the value
        Specified by:
        getAttribute in interface Session
        Overrides:
        getAttribute in class DefaultSession
        Parameters:
        name - the attribute name
        Returns:
        null if no attribute with the given name is stored in the session
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Description copied from interface: Session
        Sets the given value Object to the Session as attribute with the given name
        Specified by:
        setAttribute in interface Session
        Overrides:
        setAttribute in class DefaultSession
        Parameters:
        name - the name of the attribute
        value - the value to be set