net.javacrumbs.springws.test.context
Interface WsTestContext


public interface WsTestContext

Context that can be used for test specific data. Its attributes could be set in the test method and the values can be used in the

Author:
Lukas Krecan

Method Summary
 void clear()
          Clear all attributes.
 java.lang.Object getAttribute(java.lang.String attributeName)
          Gets attribute value
 java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
          Returns map of the attributes
 void setAttribute(java.lang.String name, java.lang.Object value)
          Sets the attribute
 void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
          Sets attribute values.
 void setAttributes(java.util.Properties attributes)
          Sets attribute values.
 

Method Detail

setAttribute

void setAttribute(java.lang.String name,
                  java.lang.Object value)
Sets the attribute

Parameters:
name -
value -

getAttribute

java.lang.Object getAttribute(java.lang.String attributeName)
Gets attribute value

Parameters:
attributeName -
Returns:

getAttributeMap

java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
Returns map of the attributes

Returns:

setAttributes

void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Sets attribute values.

Parameters:
attributes -

setAttributes

void setAttributes(java.util.Properties attributes)
Sets attribute values.

Parameters:
attributes -

clear

void clear()
Clear all attributes.



Copyright © 2011. All Rights Reserved.