Package ninja.classesfortest
Class TestDummyController
- java.lang.Object
-
- ninja.classesfortest.TestDummyController
-
public class TestDummyController extends Object
This is a controller. We use it to test if method invocation works. Usually I would mock it, but as reflection stuff is made up of final classes Mockito can't help us... Therefore we have this simple controller with some methods we can check :)- Author:
- ra
-
-
Field Summary
Fields Modifier and Type Field Description booleancompletelyMixedMethodSignatureExecutedContextcontextbooleancontextMethodExecutedbooleannoParameterMethodExecutedStringparam1Stringparam2booleanparamMethodExecutedStringpathParam1StringpathParam2booleanpathParamMethodExecuted
-
Constructor Summary
Constructors Constructor Description TestDummyController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultcompletelyMixedMethodSignature(String param1, String pathParam1, Context context, String param2, String pathParam2)Resultcontext(Context context)ResultnoParameter()Resultparam(Context context, String param1)ResultpathParam(Context context, String pathParam1)
-
-
-
Field Detail
-
noParameterMethodExecuted
public boolean noParameterMethodExecuted
-
contextMethodExecuted
public boolean contextMethodExecuted
-
paramMethodExecuted
public boolean paramMethodExecuted
-
pathParamMethodExecuted
public boolean pathParamMethodExecuted
-
completelyMixedMethodSignatureExecuted
public boolean completelyMixedMethodSignatureExecuted
-
context
public Context context
-
param1
public String param1
-
pathParam1
public String pathParam1
-
param2
public String param2
-
pathParam2
public String pathParam2
-
-
Method Detail
-
noParameter
public Result noParameter()
-
-