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 boolean
completelyMixedMethodSignatureExecuted
Context
context
boolean
contextMethodExecuted
boolean
noParameterMethodExecuted
String
param1
String
param2
boolean
paramMethodExecuted
String
pathParam1
String
pathParam2
boolean
pathParamMethodExecuted
-
Constructor Summary
Constructors Constructor Description TestDummyController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result
completelyMixedMethodSignature(String param1, String pathParam1, Context context, String param2, String pathParam2)
Result
context(Context context)
Result
noParameter()
Result
param(Context context, String param1)
Result
pathParam(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()
-
-