1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.student.mock.mojo;
17
18 import org.kuali.student.contract.model.Service;
19 import org.kuali.student.contract.model.ServiceContractModel;
20 import org.kuali.student.contract.model.util.ServicesFilter;
21 import org.slf4j.Logger;
22 import org.slf4j.LoggerFactory;
23
24
25
26
27
28
29 public class ConformanceTestWriter extends MockImplWriter {
30
31 private static final Logger log = LoggerFactory.getLogger(ConformanceTestWriter.class);
32
33
34
35
36
37 public ConformanceTestWriter(ServiceContractModel model, String directory, String rootPackage, ServicesFilter filter, boolean isR1) {
38 super (model, directory, rootPackage, filter, isR1);
39 }
40
41
42
43
44
45
46
47
48 public void write() {
49 this.validate();
50 for (Service service : filterServices()) {
51 log.info ("************** generating conformance test for service = " + service.getKey() + " **************");
52
53 try {
54 new ConformanceTestWriterForOneService(model, directory, rootPackage, service.getKey(), isR1).write();
55 } catch (Exception e) {
56 log.error ("Failed to generate conformance test for service = " + service.getKey(), e);
57 }
58 }
59 }
60
61 }