Skip to content

Commit e1a6111

Browse files
committed
junit 5 classes without public modifier
1 parent e88c75f commit e1a6111

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
- fj-lib set to 8.4.10
13+
- junit 5 classes without public modifier
1314

1415
## [1.5.0] - 2024-02-28
1516

fj-daogen-base/src/main/java/org/fugerit/java/daogen/base/gen/Junit5ModelGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public void init( DaogenCatalogConfig daogenConfig, DaogenCatalogEntity entity )
2828
super.init( daogenConfig.getGeneralProp( DaogenCatalogConstants.GEN_PROP_SRC_TEST_JAVA ),
2929
fullObjectName( daogenConfig.getGeneralProp( DaogenCatalogConstants.GEN_PROP_PACKAGE_JUNIT5_MODEL ), DaogenCatalogConstants.junit4ModelName( entity ) ),
3030
STYLE_INTERFACE, daogenConfig, entity );
31+
this.setPublicClass( false );
3132
this.setJavaStyle( STYLE_CLASS );
3233
GenUtils.addAll( this.getImportList(), "org.slf4j.Logger", "org.slf4j.LoggerFactory", "org.junit.jupiter.api.Assertions", "org.junit.jupiter.api.Test",
3334
this.getDaogenConfig().getGeneralProp( DaogenCatalogConstants.GEN_PROP_PACKAGE_MODEL )+"."+this.getEntityModelName(),

0 commit comments

Comments
 (0)