@@ -37,16 +37,22 @@ public abstract class AbstractTacticArchUnitTest {
37
37
38
38
/**
39
39
* Implement this method to define the Bounded Context name.
40
+ *
41
+ * @return A string that defines the Bounded Context name.
40
42
*/
41
43
protected abstract String getBoundedContextName ();
42
44
43
45
/**
44
46
* Implement this method to define against which CML file you want to test.
47
+ *
48
+ * @return A string that provides the file path to the CML file.
45
49
*/
46
50
protected abstract String getCMLFilePath ();
47
51
48
52
/**
49
53
* Implement this method to defined the java package within which you want to test.
54
+ *
55
+ * @return A string that represents the Java package name against you want to test.
50
56
*/
51
57
protected abstract String getJavaPackageName2Test ();
52
58
@@ -59,6 +65,8 @@ protected void setup() {
59
65
60
66
/**
61
67
* Override this method to change class import behavior.
68
+ *
69
+ * @return JavaClasses object.
62
70
*/
63
71
protected JavaClasses importClasses () {
64
72
return new ClassFileImporter ()
@@ -68,57 +76,79 @@ protected JavaClasses importClasses() {
68
76
69
77
@ Test
70
78
void aggregatesShouldBeModeledInCML () {
71
- aggregateClassesShouldBeModeledInCml (context ).check (classes );
79
+ aggregateClassesShouldBeModeledInCml (context )
80
+ .allowEmptyShould (true )
81
+ .check (classes );
72
82
}
73
83
74
84
@ Test
75
85
void aggregatesShouldAdhereToCmlAggregateStructure () {
76
- aggregatesShouldAdhereToCmlStructure (context ).check (classes );
86
+ aggregatesShouldAdhereToCmlStructure (context )
87
+ .allowEmptyShould (true )
88
+ .check (classes );
77
89
}
78
90
79
91
@ Test
80
92
void modulesShouldBeModeledInCML () {
81
- modulePackagesShouldBeModeledInCml (context ).check (classes );
93
+ modulePackagesShouldBeModeledInCml (context )
94
+ .allowEmptyShould (true )
95
+ .check (classes );
82
96
}
83
97
84
98
@ Test
85
99
void entitiesShouldBeModeledInCML () {
86
- entityClassesShouldBeModeledInCml (context ).check (classes );
100
+ entityClassesShouldBeModeledInCml (context )
101
+ .allowEmptyShould (true )
102
+ .check (classes );
87
103
}
88
104
89
105
@ Test
90
106
void valueObjectsShouldBeModeledInCML () {
91
- valueObjectClassesShouldBeModeledInCml (context ).check (classes );
107
+ valueObjectClassesShouldBeModeledInCml (context )
108
+ .allowEmptyShould (true )
109
+ .check (classes );
92
110
}
93
111
94
112
@ Test
95
113
void domainEventsShouldBeModeledInCML () {
96
- domainEventClassesShouldBeModeledInCml (context ).check (classes );
114
+ domainEventClassesShouldBeModeledInCml (context )
115
+ .allowEmptyShould (true )
116
+ .check (classes );
97
117
}
98
118
99
119
@ Test
100
120
void servicesShouldBeModeledInCML () {
101
- serviceClassesShouldBeModeledInCml (context ).check (classes );
121
+ serviceClassesShouldBeModeledInCml (context )
122
+ .allowEmptyShould (true )
123
+ .check (classes );
102
124
}
103
125
104
126
@ Test
105
127
void repositoriesShouldBeModeledInCML () {
106
- repositoryClassesShouldBeModeledInCml (context ).check (classes );
128
+ repositoryClassesShouldBeModeledInCml (context )
129
+ .allowEmptyShould (true )
130
+ .check (classes );
107
131
}
108
132
109
133
@ Test
110
134
void entitiesShouldAdhereToCmlStructure () {
111
- entitiesShouldAdhereToCmlEntityStructure (context ).check (classes );
135
+ entitiesShouldAdhereToCmlEntityStructure (context )
136
+ .allowEmptyShould (true )
137
+ .check (classes );
112
138
}
113
139
114
140
@ Test
115
141
void valueObjectsShouldAdhereToCmlStructure () {
116
- valueObjectsShouldAdhereToCmlValueObjectStructure (context ).check (classes );
142
+ valueObjectsShouldAdhereToCmlValueObjectStructure (context )
143
+ .allowEmptyShould (true )
144
+ .check (classes );
117
145
}
118
146
119
147
@ Test
120
148
void domainEventsShouldAdhereToCmlStructure () {
121
- domainEventsShouldAdhereToCmlDomainEventStructure (context ).check (classes );
149
+ domainEventsShouldAdhereToCmlDomainEventStructure (context )
150
+ .allowEmptyShould (true )
151
+ .check (classes );
122
152
}
123
153
124
154
}
0 commit comments