|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.tests.common.helper.PrintHelper
public final class PrintHelper
This helper is used to do operation with InvocationContext and interceptors.
Constructor Summary | |
---|---|
private |
PrintHelper()
Helper should have a private constructor. |
Method Summary | ||
---|---|---|
static
|
addValue(javax.ejb.InvocationContext invocationContext,
E value,
java.lang.String className)
Intercepts the method and add a value in the list that was get from InvocationContext. |
|
static java.lang.String |
getPrintOrderErrorMsg(java.util.List expected,
java.util.List result,
java.lang.String seedMessage)
Gets the error msg formatted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private PrintHelper()
Method Detail |
---|
public static <E> java.lang.Object addValue(javax.ejb.InvocationContext invocationContext, E value, java.lang.String className) throws java.lang.Exception
E
- Element TypeinvocationContext
- contains attributes of invocation, the first
parameter of the intercepted method must be a list.value
- value to addclassName
- class that is invoking this method.
java.lang.Exception
- if invocation failspublic static java.lang.String getPrintOrderErrorMsg(java.util.List expected, java.util.List result, java.lang.String seedMessage)
expected
- values to a correct answerresult
- result values after an executionseedMessage
- standard message to show
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |