@Test public void testValidate() { context.checking(new Expectations() { { allowing(actionContext).getParams(); will(returnValue(new HashMap())); oneOf(validator).validate(with(any(Map.class)), with(any(Map.class))); } }); sut.validate(actionContext); context.assertIsSatisfied(); }
@SuppressWarnings("unchecked") @Override public void validate(final ActionContext inActionContext) { validator.validate((Map<String, Serializable>) inActionContext.getParams(), new HashMap<String, String>()); }
MapParameterDecoratorValidation implements ValidationStrategy<ActionContext> { @SuppressWarnings("unchecked") @Override public void validate(final ActionContext inActionContext) { validator.validate((Map<String, Serializable>) inActionContext.getParams(), new HashMap<String, String>()); } }
MapParameterDecoratorValidation implements ValidationStrategy<ActionContext> { @SuppressWarnings("unchecked") @Override public void validate(final ActionContext inActionContext) { validator.validate((Map<String, Serializable>) inActionContext.getParams(), new HashMap<String, String>()); } MapParameterDecoratorValidation(final MapParameterValidatorDecorator inValidator); }
MapParameterDecoratorValidation implements ValidationStrategy<ActionContext> { @SuppressWarnings("unchecked") @Override public void validate(final ActionContext inActionContext) { validator.validate((Map<String, Serializable>) inActionContext.getParams(), new HashMap<String, String>()); } MapParameterDecoratorValidation(final MapParameterValidatorDecorator inValidator); @SuppressWarnings("unchecked") @Override void validate(final ActionContext inActionContext); }
MapParameterDecoratorValidation implements ValidationStrategy<ActionContext> { @SuppressWarnings("unchecked") @Override public void validate(final ActionContext inActionContext) { validator.validate((Map<String, Serializable>) inActionContext.getParams(), new HashMap<String, String>()); } MapParameterDecoratorValidation(final MapParameterValidatorDecorator inValidator); @SuppressWarnings("unchecked") @Override void validate(final ActionContext inActionContext);  }