Package de.cuioss.test.jsf.mocks
Class CuiMockMethodExpression
- java.lang.Object
-
- javax.el.Expression
-
- javax.el.MethodExpression
-
- de.cuioss.test.jsf.mocks.CuiMockMethodExpression
-
- All Implemented Interfaces:
Serializable
public class CuiMockMethodExpression extends MethodExpression
- Author:
- Oliver Wolff
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CuiMockMethodExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetExpressionString()Object[]getInvokedParams()Parameters method was invoked with.MethodInfogetMethodInfo(ELContext context)inthashCode()Objectinvoke(ELContext context, Object[] params)booleanisInvoked()Indicates whether method was invoked.booleanisLiteralText()voidsetExpressionString(String expressionString)voidsetInvoked(boolean invoked)Indicates whether method was invoked.voidsetInvokeResult(Serializable invokeResult)Result to be returned oninvoke(ELContext, Object[])voidsetLiteralText(boolean literalText)voidsetMethodInfo(MethodInfo methodInfo)StringtoString()-
Methods inherited from class javax.el.MethodExpression
isParametersProvided, isParmetersProvided
-
-
-
-
Constructor Detail
-
CuiMockMethodExpression
public CuiMockMethodExpression()
-
-
Method Detail
-
getMethodInfo
public MethodInfo getMethodInfo(ELContext context)
- Specified by:
getMethodInfoin classMethodExpression
-
invoke
public Object invoke(ELContext context, Object[] params)
- Specified by:
invokein classMethodExpression
-
equals
public boolean equals(Object o)
- Specified by:
equalsin classExpression
-
hashCode
public int hashCode()
- Specified by:
hashCodein classExpression
-
isInvoked
public boolean isInvoked()
Indicates whether method was invoked.
-
setInvoked
public void setInvoked(boolean invoked)
Indicates whether method was invoked.
-
getInvokedParams
public Object[] getInvokedParams()
Parameters method was invoked with.
-
setInvokeResult
public void setInvokeResult(Serializable invokeResult)
Result to be returned oninvoke(ELContext, Object[])
-
setMethodInfo
public void setMethodInfo(MethodInfo methodInfo)
-
getExpressionString
public String getExpressionString()
- Specified by:
getExpressionStringin classExpression
-
setExpressionString
public void setExpressionString(String expressionString)
-
isLiteralText
public boolean isLiteralText()
- Specified by:
isLiteralTextin classExpression
-
setLiteralText
public void setLiteralText(boolean literalText)
-
-