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