Skip to content

Commit a8cdf7b

Browse files
committed
Rollback 'public' attributes
1 parent 9a57ae8 commit a8cdf7b

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

core/esmf-aspect-model-java-generator/src/test/java/org/eclipse/esmf/aspectmodel/java/AspectModelJavaUtilTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.junit.jupiter.params.provider.Arguments;
3030
import org.junit.jupiter.params.provider.MethodSource;
3131

32-
class AspectModelJavaUtilTest extends PropertyBasedTest {
32+
public class AspectModelJavaUtilTest extends PropertyBasedTest {
3333
private boolean isValidJavaIdentifier( final String value ) {
3434
if ( value == null || value.isEmpty() ) {
3535
return false;

core/esmf-aspect-model-java-generator/src/test/java/org/eclipse/esmf/aspectmodel/java/ExtendedStaticMetaModelFunctionalityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.apache.commons.lang3.reflect.ConstructorUtils;
3232
import org.junit.jupiter.api.Test;
3333

34-
class ExtendedStaticMetaModelFunctionalityTest extends StaticMetaModelGeneratorTest {
34+
public class ExtendedStaticMetaModelFunctionalityTest extends StaticMetaModelGeneratorTest {
3535
@Test
3636
void testComputedProperties() throws IOException, ReflectiveOperationException {
3737
final TestAspect aspect = TestAspect.ASPECT_WITH_EXTENDED_ENUMS;

core/esmf-aspect-model-java-generator/src/test/java/org/eclipse/esmf/aspectmodel/java/JavaCodeGenerationConfigurationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222

2323
import org.junit.jupiter.api.Test;
2424

25-
class JavaCodeGenerationConfigurationTest {
25+
public class JavaCodeGenerationConfigurationTest {
2626
final String currentWorkingDirectory = System.getProperty( "user.dir" );
2727
private final File templateLibFile = Path.of( currentWorkingDirectory, "/templates", "/test-macro-lib.vm" ).toFile();
2828
private final File emptyTemplateLibFile = Path.of( "" ).toFile();
2929
private final File nonExistingTemplateLibPath = Path.of( "/templates", "/non-existing.vm" ).toFile();
3030

3131
@Test
32-
void testValidTemplateLibConfig() {
32+
public void testValidTemplateLibConfig() {
3333
assertThatCode( () ->
3434
JavaCodeGenerationConfigBuilder.builder()
3535
.enableJacksonAnnotations( true )
@@ -54,7 +54,7 @@ void testValidTemplateLibConfig() {
5454
}
5555

5656
@Test
57-
void testTemplateLibConfigMissingFile() {
57+
public void testTemplateLibConfigMissingFile() {
5858
assertThatCode( () ->
5959
JavaCodeGenerationConfigBuilder.builder()
6060
.enableJacksonAnnotations( true )
@@ -67,7 +67,7 @@ void testTemplateLibConfigMissingFile() {
6767
}
6868

6969
@Test
70-
void testTemplateLibConfigNonExistingFile() {
70+
public void testTemplateLibConfigNonExistingFile() {
7171
assertThatCode( () ->
7272
JavaCodeGenerationConfigBuilder.builder()
7373
.enableJacksonAnnotations( true )

core/esmf-aspect-model-java-generator/src/test/java/org/eclipse/esmf/aspectmodel/java/StaticMetaModelBaseAttributesTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import com.google.common.collect.ImmutableSet;
2323
import org.junit.jupiter.api.Test;
2424

25-
class StaticMetaModelBaseAttributesTest extends StaticMetaModelGeneratorTest {
25+
public class StaticMetaModelBaseAttributesTest extends StaticMetaModelGeneratorTest {
2626

2727
@Test
2828
void testMetaModelBaseAttributesOfGeneratedProperty() throws IOException {
@@ -40,7 +40,7 @@ void testMetaModelBaseAttributesOfGeneratedProperty() throws IOException {
4040
}
4141

4242
@Test
43-
void testMetaModelBaseAttributesOfGeneratedPropertyWithAllAttributes() throws IOException {
43+
public void testMetaModelBaseAttributesOfGeneratedPropertyWithAllAttributes() throws IOException {
4444
final TestAspect aspect = TestAspect.ASPECT_WITH_PROPERTY_WITH_ALL_BASE_ATTRIBUTES;
4545
final StaticClassGenerationResult result = TestContext.generateStaticAspectCode().apply( getGenerators( aspect ) );
4646
result.assertNumberOfFiles( 2 );
@@ -60,7 +60,7 @@ void testMetaModelBaseAttributesOfGeneratedPropertyWithAllAttributes() throws IO
6060
}
6161

6262
@Test
63-
void testMetaModelBaseAttributesOfGeneratedPropertyWithPreferredNames() throws IOException {
63+
public void testMetaModelBaseAttributesOfGeneratedPropertyWithPreferredNames() throws IOException {
6464
final TestAspect aspect = TestAspect.ASPECT_WITH_PROPERTY_WITH_PREFERRED_NAMES;
6565
final StaticClassGenerationResult result = TestContext.generateStaticAspectCode().apply( getGenerators( aspect ) );
6666
result.assertNumberOfFiles( 2 );
@@ -76,7 +76,7 @@ void testMetaModelBaseAttributesOfGeneratedPropertyWithPreferredNames() throws I
7676
}
7777

7878
@Test
79-
void testMetaModelBaseAttributesOfGeneratedPropertyWithDescriptions() throws IOException {
79+
public void testMetaModelBaseAttributesOfGeneratedPropertyWithDescriptions() throws IOException {
8080
final TestAspect aspect = TestAspect.ASPECT_WITH_PROPERTY_WITH_DESCRIPTIONS;
8181
final StaticClassGenerationResult result = TestContext.generateStaticAspectCode()
8282
.apply( getGenerators( aspect ) );
@@ -93,7 +93,7 @@ void testMetaModelBaseAttributesOfGeneratedPropertyWithDescriptions() throws IOE
9393
}
9494

9595
@Test
96-
void testMetaModelBaseAttributesOfGeneratedPropertyWithSee() throws IOException {
96+
public void testMetaModelBaseAttributesOfGeneratedPropertyWithSee() throws IOException {
9797
final TestAspect aspect = TestAspect.ASPECT_WITH_PROPERTY_WITH_SEE;
9898
final StaticClassGenerationResult result = TestContext.generateStaticAspectCode()
9999
.apply( getGenerators( aspect ) );
@@ -110,7 +110,7 @@ void testMetaModelBaseAttributesOfGeneratedPropertyWithSee() throws IOException
110110
}
111111

112112
@Test
113-
void testGeneratedMetaModelContainsRequiredMethods() throws IOException {
113+
public void testGeneratedMetaModelContainsRequiredMethods() throws IOException {
114114
final TestAspect aspect = TestAspect.ASPECT_WITH_BOOLEAN;
115115
final StaticClassGenerationResult result = TestContext.generateStaticAspectCode()
116116
.apply( getGenerators( aspect ) );
@@ -132,7 +132,7 @@ void testGeneratedMetaModelContainsRequiredMethods() throws IOException {
132132
}
133133

134134
@Test
135-
void testGeneratedMetaModelContainsOptionalMethods() throws IOException {
135+
public void testGeneratedMetaModelContainsOptionalMethods() throws IOException {
136136
final TestAspect aspect = TestAspect.ASPECT_WITH_ALL_BASE_ATTRIBUTES;
137137
final StaticClassGenerationResult result = TestContext.generateStaticAspectCode()
138138
.apply( getGenerators( aspect ) );
@@ -173,7 +173,7 @@ void testGeneratedMetaModelContainsOptionalMethods() throws IOException {
173173
}
174174

175175
@Test
176-
void testGeneratedMetaModelContainsGetPreferredNamesMethod() throws IOException {
176+
public void testGeneratedMetaModelContainsGetPreferredNamesMethod() throws IOException {
177177
final TestAspect aspect = TestAspect.ASPECT_WITH_PREFERRED_NAMES;
178178
final StaticClassGenerationResult result = TestContext.generateStaticAspectCode()
179179
.apply( getGenerators( aspect ) );
@@ -204,7 +204,7 @@ void testGeneratedMetaModelContainsGetPreferredNamesMethod() throws IOException
204204
}
205205

206206
@Test
207-
void testGeneratedMetaModelContainsGetDescriptionsMethod() throws IOException {
207+
public void testGeneratedMetaModelContainsGetDescriptionsMethod() throws IOException {
208208
final TestAspect aspect = TestAspect.ASPECT_WITH_DESCRIPTIONS;
209209
final StaticClassGenerationResult result = TestContext.generateStaticAspectCode()
210210
.apply( getGenerators( aspect ) );
@@ -235,7 +235,7 @@ void testGeneratedMetaModelContainsGetDescriptionsMethod() throws IOException {
235235
}
236236

237237
@Test
238-
void testGeneratedMetaModelContainsGetSeeMethod() throws IOException {
238+
public void testGeneratedMetaModelContainsGetSeeMethod() throws IOException {
239239
final TestAspect aspect = TestAspect.ASPECT_WITH_PROPERTY_WITH_SEE;
240240
final StaticClassGenerationResult result = TestContext.generateStaticAspectCode()
241241
.apply( getGenerators( aspect ) );

0 commit comments

Comments
 (0)