Hi,
I am writing a test case extending from strutsspringtestcase and invoking
the actions as below:
ActionProxy proxy = getActionProxy("/login");
LoginAction action = (LoginAction) proxy.getAction();
String result = proxy.execute();
Also, I am creating mocked objects using mockito as below:
@Moc
We have used struts 2 validation with lots of custom validation to validate our
forms.
@Validations(
customValidators =
{ @CustomValidator(type = "AccountFormat", fieldName =
"accountNo") }
)
Also we can can manually validate a form by overriding the valid
2 matches
Mail list logo