@Test public void testSimpleValidator_IsXml() throws Exception { XmlValidationService service = new XmlValidationService(); XmlBasicValidator validator = new XmlBasicValidator(); service.setValidators(new ArrayList<MessageValidator>(Arrays.asList(validator))); AdaptrisMessage msg = new DefaultMessageFactory().newMessage("<?xml version=\"1.0\"?><Root>></Root>"); execute(service, msg); }
public void setValidators(List<MessageValidator> validators) { this.validators = Args.notNull(validators, "validators"); }
XmlValidationService extends ServiceImp { public void setValidators(List<MessageValidator> validators) { this.validators = Args.notNull(validators, "validators"); } }
XmlValidationService extends ServiceImp { public void setValidators(List<MessageValidator> validators) { this.validators = Args.notNull(validators, "validators"); } XmlValidationService();  XmlValidationService(MessageValidator... validators); }
XmlValidationService extends ServiceImp { public void setValidators(List<MessageValidator> validators) { this.validators = Args.notNull(validators, "validators"); } XmlValidationService();  XmlValidationService(MessageValidator... validators); @Override void start(); @Override void stop(); @Override void doService(AdaptrisMessage msg); @Override void prepare(); List<MessageValidator> getValidators(); void setValidators(List<MessageValidator> validators); }
XmlValidationService extends ServiceImp { public void setValidators(List<MessageValidator> validators) { this.validators = Args.notNull(validators, "validators"); } XmlValidationService();  XmlValidationService(MessageValidator... validators); @Override void start(); @Override void stop(); @Override void doService(AdaptrisMessage msg); @Override void prepare(); List<MessageValidator> getValidators(); void setValidators(List<MessageValidator> validators);  }