@@ -27,7 +27,8 @@ class StaticMetaModelBaseAttributesTest extends StaticMetaModelGeneratorTest {
27
27
@ Test
28
28
void testMetaModelBaseAttributesOfGeneratedProperty () throws IOException {
29
29
final TestAspect aspect = TestAspect .ASPECT_WITH_BOOLEAN ;
30
- final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ().apply ( getGenerators ( aspect ) );
30
+ final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ().apply ( getGenerators ( aspect , false ,
31
+ JavaCodeGenerationConfig .SetterStyle .STANDARD ) );
31
32
result .assertNumberOfFiles ( 2 );
32
33
33
34
final ImmutableSet <String > expectedArguments = ImmutableSet .<String > builder ()
@@ -42,7 +43,8 @@ void testMetaModelBaseAttributesOfGeneratedProperty() throws IOException {
42
43
@ Test
43
44
void testMetaModelBaseAttributesOfGeneratedPropertyWithAllAttributes () throws IOException {
44
45
final TestAspect aspect = TestAspect .ASPECT_WITH_PROPERTY_WITH_ALL_BASE_ATTRIBUTES ;
45
- final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ().apply ( getGenerators ( aspect ) );
46
+ final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ().apply ( getGenerators ( aspect , false ,
47
+ JavaCodeGenerationConfig .SetterStyle .STANDARD ) );
46
48
result .assertNumberOfFiles ( 2 );
47
49
48
50
final String expectedMetaModelBaseAttributeBuilderCall = "MetaModelBaseAttributes.builder()"
@@ -62,7 +64,8 @@ void testMetaModelBaseAttributesOfGeneratedPropertyWithAllAttributes() throws IO
62
64
@ Test
63
65
void testMetaModelBaseAttributesOfGeneratedPropertyWithPreferredNames () throws IOException {
64
66
final TestAspect aspect = TestAspect .ASPECT_WITH_PROPERTY_WITH_PREFERRED_NAMES ;
65
- final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ().apply ( getGenerators ( aspect ) );
67
+ final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ().apply ( getGenerators ( aspect , false ,
68
+ JavaCodeGenerationConfig .SetterStyle .STANDARD ) );
66
69
result .assertNumberOfFiles ( 2 );
67
70
68
71
final String expectedMetaModelBaseAttributeBuilderCall = "MetaModelBaseAttributes.builder()"
@@ -79,7 +82,7 @@ void testMetaModelBaseAttributesOfGeneratedPropertyWithPreferredNames() throws I
79
82
void testMetaModelBaseAttributesOfGeneratedPropertyWithDescriptions () throws IOException {
80
83
final TestAspect aspect = TestAspect .ASPECT_WITH_PROPERTY_WITH_DESCRIPTIONS ;
81
84
final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ()
82
- .apply ( getGenerators ( aspect ) );
85
+ .apply ( getGenerators ( aspect , false , JavaCodeGenerationConfig . SetterStyle . STANDARD ) );
83
86
result .assertNumberOfFiles ( 2 );
84
87
85
88
final String expectedMetaModelBaseAttributeBuilderCall = "MetaModelBaseAttributes.builder()"
@@ -96,7 +99,7 @@ void testMetaModelBaseAttributesOfGeneratedPropertyWithDescriptions() throws IOE
96
99
void testMetaModelBaseAttributesOfGeneratedPropertyWithSee () throws IOException {
97
100
final TestAspect aspect = TestAspect .ASPECT_WITH_PROPERTY_WITH_SEE ;
98
101
final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ()
99
- .apply ( getGenerators ( aspect ) );
102
+ .apply ( getGenerators ( aspect , false , JavaCodeGenerationConfig . SetterStyle . STANDARD ) );
100
103
result .assertNumberOfFiles ( 2 );
101
104
102
105
final String expectedMetaModelBaseAttributeBuilderCall = "MetaModelBaseAttributes.builder()"
@@ -113,7 +116,7 @@ void testMetaModelBaseAttributesOfGeneratedPropertyWithSee() throws IOException
113
116
void testGeneratedMetaModelContainsRequiredMethods () throws IOException {
114
117
final TestAspect aspect = TestAspect .ASPECT_WITH_BOOLEAN ;
115
118
final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ()
116
- .apply ( getGenerators ( aspect ) );
119
+ .apply ( getGenerators ( aspect , false , JavaCodeGenerationConfig . SetterStyle . STANDARD ) );
117
120
result .assertNumberOfFiles ( 2 );
118
121
119
122
final ImmutableMap <String , String > expectedMethodBodies = ImmutableMap .<String , String > builder ()
@@ -135,7 +138,7 @@ void testGeneratedMetaModelContainsRequiredMethods() throws IOException {
135
138
void testGeneratedMetaModelContainsOptionalMethods () throws IOException {
136
139
final TestAspect aspect = TestAspect .ASPECT_WITH_ALL_BASE_ATTRIBUTES ;
137
140
final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ()
138
- .apply ( getGenerators ( aspect ) );
141
+ .apply ( getGenerators ( aspect , false , JavaCodeGenerationConfig . SetterStyle . STANDARD ) );
139
142
result .assertNumberOfFiles ( 2 );
140
143
141
144
final String getPreferredNamesBody = "return new HashSet<>() {\n "
@@ -176,7 +179,7 @@ void testGeneratedMetaModelContainsOptionalMethods() throws IOException {
176
179
void testGeneratedMetaModelContainsGetPreferredNamesMethod () throws IOException {
177
180
final TestAspect aspect = TestAspect .ASPECT_WITH_PREFERRED_NAMES ;
178
181
final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ()
179
- .apply ( getGenerators ( aspect ) );
182
+ .apply ( getGenerators ( aspect , false , JavaCodeGenerationConfig . SetterStyle . STANDARD ) );
180
183
result .assertNumberOfFiles ( 2 );
181
184
182
185
final String getPreferredNamesBody = "return new HashSet<>() {\n "
@@ -207,7 +210,7 @@ void testGeneratedMetaModelContainsGetPreferredNamesMethod() throws IOException
207
210
void testGeneratedMetaModelContainsGetDescriptionsMethod () throws IOException {
208
211
final TestAspect aspect = TestAspect .ASPECT_WITH_DESCRIPTIONS ;
209
212
final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ()
210
- .apply ( getGenerators ( aspect ) );
213
+ .apply ( getGenerators ( aspect , false , JavaCodeGenerationConfig . SetterStyle . STANDARD ) );
211
214
result .assertNumberOfFiles ( 2 );
212
215
213
216
final String getDescriptionsBody = "return new HashSet<>() {\n "
@@ -238,7 +241,7 @@ void testGeneratedMetaModelContainsGetDescriptionsMethod() throws IOException {
238
241
void testGeneratedMetaModelContainsGetSeeMethod () throws IOException {
239
242
final TestAspect aspect = TestAspect .ASPECT_WITH_PROPERTY_WITH_SEE ;
240
243
final StaticClassGenerationResult result = TestContext .generateStaticAspectCode ()
241
- .apply ( getGenerators ( aspect ) );
244
+ .apply ( getGenerators ( aspect , false , JavaCodeGenerationConfig . SetterStyle . STANDARD ) );
242
245
result .assertNumberOfFiles ( 2 );
243
246
244
247
final ImmutableMap <String , String > expectedMethodBodies = ImmutableMap .<String , String > builder ()
0 commit comments