bb46501fb2aeede623888fbdf0294e5a93fcec97
[JavaForFun] /
1 package de.example.symfony.validator.main;
2
3 import java.util.HashMap;
4 import java.util.Map;
5
6 import de.example.symfony.validator.service.impl.ValidatorServiceImpl;
7
8
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";
13
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");
19                 
20                 ValidatorServiceImpl validatorService = new ValidatorServiceImpl(params);
21                 validatorService.doValidate();
22                 
23                 validatorService.doPostValidate();
24         }
25
26 }