| java.lang.Object org.ow2.easybeans.tests.common.helper.InterceptorHelper
InterceptorHelper | final public class InterceptorHelper (Code) | | This helper is used to do operation with InvocationContext and interceptors.
author: Eduardo Studzinski Estima de Castro author: Gisele Pinheiro Souza |
Method Summary | |
public static Object | addValue(InvocationContext invocationContext, E value, String className) Intercepts the method and adds a value in the list that was get from
InvocationContext.
< Parameters: E - > Element Type Parameters: invocationContext - contains attributes of invocation, the firstparameter of the intercepted method must be a list or a message. Parameters: value - value to add Parameters: className - class that is invoking this method. | public static List | getArray(String str) Gets the array from string representation.
Parameters: str - representation of the list. | public static String | getPrintOrderErrorMsg(List expected, List result, String seedMessage) Gets the error msg formatted. | public static String | getString(List list) Gets the string representation of a list.
Parameters: list - object to get the string representation. |
addValue | public static Object addValue(InvocationContext invocationContext, E value, String className) throws Exception(Code) | | Intercepts the method and adds a value in the list that was get from
InvocationContext.
< Parameters: E - > Element Type Parameters: invocationContext - contains attributes of invocation, the firstparameter of the intercepted method must be a list or a message. Parameters: value - value to add Parameters: className - class that is invoking this method. method's invocation result throws: Exception - if invocation fails |
getArray | public static List getArray(String str)(Code) | | Gets the array from string representation.
Parameters: str - representation of the list. list obtained using the string representation. |
getPrintOrderErrorMsg | public static String getPrintOrderErrorMsg(List expected, List result, String seedMessage)(Code) | | Gets the error msg formatted.
Parameters: expected - values to a correct answer Parameters: result - result values after an execution Parameters: seedMessage - standard message to show error message |
getString | public static String getString(List list)(Code) | | Gets the string representation of a list.
Parameters: list - object to get the string representation. string representation of the list. |
|
|