1 package de.example.symfony.validator.main;
3 import java.util.HashMap;
6 import de.example.symfony.validator.service.impl.ValidatorServiceImpl;
9 public class ValidatorMainExample {
10 private static final String FROMID = "fromId";
11 private static final String TOID = "toId";
12 private static final String DESCRIPTION = "description";
14 public static void main(String[] args) {
15 Map<String, String> params = new HashMap<>();
16 params.put(FROMID, "50");
17 params.put(TOID, "75");
18 params.put(DESCRIPTION, "Snake Eyes");
20 ValidatorServiceImpl validatorService = new ValidatorServiceImpl(params);
21 validatorService.doValidate();
23 validatorService.doPostValidate();