diff --git a/generators/server/templates/src/test/java/package/TechnicalStructureTest.java.ejs b/generators/server/templates/src/test/java/package/TechnicalStructureTest.java.ejs index 241ba51fc469..41d6ab70558b 100644 --- a/generators/server/templates/src/test/java/package/TechnicalStructureTest.java.ejs +++ b/generators/server/templates/src/test/java/package/TechnicalStructureTest.java.ejs @@ -47,7 +47,7 @@ class TechnicalStructureTest { .optionalLayer("Service").definedBy("..service..") .layer("Security").definedBy("..security..") <%_ if (hasDomainLayer) { _%> - .layer("Persistence").definedBy("..repository..") + .optionalLayer("Persistence").definedBy("..repository..") .layer("Domain").definedBy("..domain..") <%_ } _%>