@Test public void testValidateWithoutContent() { HashMap<String, String> testValueMap = new HashMap<String, String>(); testValueMap.put("targetTitle", "title"); testValueMap.put("targetUrl", "testurl"); testActivity = new ActivityDTO(); testActivity.setBaseObjectType(BaseObjectType.BOOKMARK); testActivity.setBaseObjectProperties(testValueMap); sut.validate(testActivity); }
public void validate(final ActivityDTO inActivity) { HashMap<String, Serializable> mapValues = new HashMap<String, Serializable>(inActivity.getBaseObjectProperties()); mapValidator.validate(mapValues, new HashMap<String, String>()); }
ObjectMapParameterValidator implements ActivityValidator { public void validate(final ActivityDTO inActivity) { HashMap<String, Serializable> mapValues = new HashMap<String, Serializable>(inActivity.getBaseObjectProperties()); mapValidator.validate(mapValues, new HashMap<String, String>()); } }
ObjectMapParameterValidator implements ActivityValidator { public void validate(final ActivityDTO inActivity) { HashMap<String, Serializable> mapValues = new HashMap<String, Serializable>(inActivity.getBaseObjectProperties()); mapValidator.validate(mapValues, new HashMap<String, String>()); } ObjectMapParameterValidator(final MapParameterValidatorDecorator inMapValidator); }
ObjectMapParameterValidator implements ActivityValidator { public void validate(final ActivityDTO inActivity) { HashMap<String, Serializable> mapValues = new HashMap<String, Serializable>(inActivity.getBaseObjectProperties()); mapValidator.validate(mapValues, new HashMap<String, String>()); } ObjectMapParameterValidator(final MapParameterValidatorDecorator inMapValidator); void validate(final ActivityDTO inActivity); }
ObjectMapParameterValidator implements ActivityValidator { public void validate(final ActivityDTO inActivity) { HashMap<String, Serializable> mapValues = new HashMap<String, Serializable>(inActivity.getBaseObjectProperties()); mapValidator.validate(mapValues, new HashMap<String, String>()); } ObjectMapParameterValidator(final MapParameterValidatorDecorator inMapValidator); void validate(final ActivityDTO inActivity);  }