This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis-app-simpleapp.git


The following commit(s) were added to refs/heads/master by this push:
     new e10bf6e  adds some explanatory comments relating to the appmanifest 
used by application-scoped integration tests
e10bf6e is described below

commit e10bf6e466aa4468232e324fb42ab0ea58ababce
Author: danhaywood <[email protected]>
AuthorDate: Wed Sep 2 08:22:27 2020 +0100

    adds some explanatory comments relating to the appmanifest used by 
application-scoped integration tests
---
 .../webapp/integtests/ApplicationIntegTestAbstract.java          | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 
a/webapp/src/test/java/domainapp/webapp/integtests/ApplicationIntegTestAbstract.java
 
b/webapp/src/test/java/domainapp/webapp/integtests/ApplicationIntegTestAbstract.java
index 0731500..15477bc 100644
--- 
a/webapp/src/test/java/domainapp/webapp/integtests/ApplicationIntegTestAbstract.java
+++ 
b/webapp/src/test/java/domainapp/webapp/integtests/ApplicationIntegTestAbstract.java
@@ -16,7 +16,8 @@ import org.springframework.test.context.TestPropertySource;
 import org.springframework.transaction.annotation.Transactional;
 
 @SpringBootTest(
-        classes = ApplicationIntegTestAbstract.AppManifest.class
+    // we use a slightly different AppManifest compared to the production 
webapp (defined below)
+    classes = ApplicationIntegTestAbstract.AppManifest.class
 )
 @TestPropertySource({
         IsisPresets.H2InMemory_withUniqueSchema,
@@ -26,6 +27,10 @@ import 
org.springframework.transaction.annotation.Transactional;
 @ContextConfiguration
 public abstract class ApplicationIntegTestAbstract extends 
IsisIntegrationTestAbstract {
 
+    /**
+     * Compared to the production app manifest 
<code>domainapp.webapp.AppManifest</code>,
+     * here we in effect disable security checks, and we exclude any web/UI 
modules.
+     */
     @Configuration
     @Import({
         IsisModuleCoreRuntimeServices.class,
@@ -33,7 +38,7 @@ public abstract class ApplicationIntegTestAbstract extends 
IsisIntegrationTestAb
         IsisModuleSecurityBypass.class,
         IsisModuleTestingFixturesApplib.class,
 
-        ApplicationModule.class
+        ApplicationModule.class,
     })
     public static class AppManifest {
     }

Reply via email to