@@ -64,7 +64,7 @@ class DomainDSLParsingTest {
64
64
BoundedContext testContext
65
65
66
66
Domain Insurance {
67
- Subdomain core
67
+ Subdomain CoreDomain
68
68
Subdomain support1
69
69
Subdomain generic
70
70
}
@@ -79,7 +79,7 @@ class DomainDSLParsingTest {
79
79
assertEquals(3 , domain. subdomains. size);
80
80
81
81
val subdomainNames = domain. subdomains. stream. map[name]. collect(Collectors . toList);
82
- assertTrue(subdomainNames. contains(" core " ));
82
+ assertTrue(subdomainNames. contains(" CoreDomain " ));
83
83
assertTrue(subdomainNames. contains(" support1" ));
84
84
assertTrue(subdomainNames. contains(" generic" ));
85
85
}
@@ -88,10 +88,10 @@ class DomainDSLParsingTest {
88
88
def void canMapSubdomainToBoundedContexts () {
89
89
// given
90
90
val String dslSnippet = ' ' '
91
- BoundedContext testContext implements core
91
+ BoundedContext testContext implements CoreDomain
92
92
93
93
Domain Insurance {
94
- Subdomain core {
94
+ Subdomain CoreDomain {
95
95
type = CORE_DOMAIN
96
96
}
97
97
Subdomain support1 {
@@ -108,17 +108,17 @@ class DomainDSLParsingTest {
108
108
assertThatNoParsingErrorsOccurred(result);
109
109
assertThatNoValidationErrorsOccurred(result);
110
110
assertEquals(1 , result. boundedContexts. get(0 ). implementedDomainParts. size);
111
- assertEquals(" core " , result. boundedContexts. get(0 ). implementedDomainParts. get(0 ). name);
111
+ assertEquals(" CoreDomain " , result. boundedContexts. get(0 ). implementedDomainParts. get(0 ). name);
112
112
}
113
113
114
114
@Test
115
115
def void canMapSubdomainsToBoundedContexts () {
116
116
// given
117
117
val String dslSnippet = ' ' '
118
- BoundedContext testContext implements core , support1
118
+ BoundedContext testContext implements CoreDomain , support1
119
119
120
120
Domain Insurance {
121
- Subdomain core {
121
+ Subdomain CoreDomain {
122
122
type = CORE_DOMAIN
123
123
}
124
124
Subdomain support1 {
@@ -137,7 +137,7 @@ class DomainDSLParsingTest {
137
137
assertEquals(2 , result. boundedContexts. get(0 ). implementedDomainParts. size);
138
138
139
139
val subdomainNames = result. boundedContexts. get(0 ). implementedDomainParts. stream. map[name]. collect(Collectors . toList);
140
- assertTrue(subdomainNames. contains(" core " ));
140
+ assertTrue(subdomainNames. contains(" CoreDomain " ));
141
141
assertTrue(subdomainNames. contains(" support1" ));
142
142
}
143
143
@@ -162,7 +162,7 @@ class DomainDSLParsingTest {
162
162
// given
163
163
val String dslSnippet = ' ' '
164
164
Domain Insurance {
165
- Subdomain core {
165
+ Subdomain CoreDomain {
166
166
type = CORE_DOMAIN
167
167
domainVisionStatement = "my domain vision for this subdomain"
168
168
}
@@ -183,7 +183,7 @@ class DomainDSLParsingTest {
183
183
BoundedContext testContext implements Insurance
184
184
185
185
Domain Insurance {
186
- Subdomain core {
186
+ Subdomain CoreDomain {
187
187
type = CORE_DOMAIN
188
188
}
189
189
}
@@ -200,10 +200,10 @@ class DomainDSLParsingTest {
200
200
def void cannotImplementSubdomainAlreadyImplementedByDomain () {
201
201
// given
202
202
val String dslSnippet = ' ' '
203
- BoundedContext testContext implements Insurance, core
203
+ BoundedContext testContext implements Insurance, CoreDomain
204
204
205
205
Domain Insurance {
206
- Subdomain core {
206
+ Subdomain CoreDomain {
207
207
type = CORE_DOMAIN
208
208
}
209
209
}
@@ -213,7 +213,7 @@ class DomainDSLParsingTest {
213
213
// then
214
214
assertThatNoParsingErrorsOccurred(result);
215
215
validationTestHelper. assertError(result, ContextMappingDSLPackage . Literals . BOUNDED_CONTEXT , " " ,
216
- String . format(ALREADY_IMPLEMENTED_SUBDOMAIN , " core " , " Insurance" ));
216
+ String . format(ALREADY_IMPLEMENTED_SUBDOMAIN , " CoreDomain " , " Insurance" ));
217
217
}
218
218
219
219
@Test
@@ -223,7 +223,7 @@ class DomainDSLParsingTest {
223
223
BoundedContext testContext implements Insurance, Banking
224
224
225
225
Domain Insurance {
226
- Subdomain core {
226
+ Subdomain CoreDomain {
227
227
type = CORE_DOMAIN
228
228
}
229
229
}
@@ -241,7 +241,7 @@ class DomainDSLParsingTest {
241
241
// given
242
242
val String dslSnippet = ' ' '
243
243
Domain Insurance {
244
- Subdomain core {
244
+ Subdomain CoreDomain {
245
245
type = CORE_DOMAIN
246
246
domainVisionStatement = "my domain vision for this subdomain"
247
247
@@ -267,7 +267,7 @@ class DomainDSLParsingTest {
267
267
// given
268
268
val String dslSnippet = ' ' '
269
269
Domain Insurance {
270
- Subdomain core {
270
+ Subdomain CoreDomain {
271
271
type = CORE_DOMAIN
272
272
domainVisionStatement = "my domain vision for this subdomain"
273
273
@@ -289,7 +289,7 @@ class DomainDSLParsingTest {
289
289
// given
290
290
val String dslSnippet = ' ' '
291
291
Domain Insurance {
292
- Subdomain core {
292
+ Subdomain CoreDomain {
293
293
type CORE_DOMAIN
294
294
domainVisionStatement "my domain vision for this subdomain"
295
295
}
0 commit comments