Skip to content

Commit

Permalink
CAUSEWAY-3855: surefire configuration to allow dynamic agent loading
Browse files Browse the repository at this point in the history
  • Loading branch information
andi-huber committed Feb 26, 2025
1 parent 8aeebea commit 43a5f3f
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 26 deletions.
5 changes: 4 additions & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ identified
<snakeyaml.version>2.0</snakeyaml.version>
<spring-boot.version>3.4.3</spring-boot.version>

<surefire-plugin.argLine>-Xmx384m</surefire-plugin.argLine>
<surefire-plugin.argLine>
-Xmx384m
-XX:+EnableDynamicAgentLoading
</surefire-plugin.argLine>
<surefire.useModulePath>false</surefire.useModulePath> <!-- disable
module-path for testing, that is, put everything on the class-path -->
<swagger-core.version>2.2.28</swagger-core.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public void whenSpecified() {
facetFactory.process(processClassContext);

final Facet facet = facetHolder.getFacet(CssClassFacet.class);
System.err.printf("%s%n", facet);
assertNotNull(facet);
assertTrue(facet instanceof CssClassFacetForDomainObjectLayoutAnnotation);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ void happy_case() throws Exception {
final Map<String, String> schemas = jaxbService.toXsd(menuBars, CausewaySchemas.INCLUDE);

menuBars.visit(data->{
System.err.printf("%s%n", data);
//debug
//System.err.printf("%s%n", data);
});

for (Map.Entry<String, String> entry : schemas.entrySet()) {
Expand All @@ -63,7 +64,7 @@ void happy_case() throws Exception {
}

private void println(final String string) {
//for test debugging only
//debug
//System.err.printf("%s%n", string);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ void timeFormats(final TimePrecision timePrecision) {

var formattedTemporal = formatter.format(localTime);
assertNotNull(formattedTemporal);

System.out.println(formattedTemporal);
}

// -- HELPER
Expand Down
3 changes: 0 additions & 3 deletions extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
<properties>
<jar-plugin.automaticModuleName>org.apache.causeway.extensions</jar-plugin.automaticModuleName>
<git-plugin.propertiesDir>org/apache/causeway/extensions</git-plugin.propertiesDir>

<!-- override surefire defaults from bom, as this is not a Java module yet -->
<surefire-plugin.argLine>-Xmx384m</surefire-plugin.argLine>
</properties>

<build>
Expand Down
3 changes: 0 additions & 3 deletions persistence/jdo/datanucleus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
<properties>
<jar-plugin.automaticModuleName>org.apache.causeway.persistence.jdo.datanucleus</jar-plugin.automaticModuleName>
<git-plugin.propertiesDir>org/apache/causeway/persistence/jdo/datanucleus</git-plugin.propertiesDir>

<!-- override surefire defaults from bom, as this is not a Java module yet -->
<surefire-plugin.argLine>-Xmx384m</surefire-plugin.argLine>
</properties>

<dependencies>
Expand Down
3 changes: 0 additions & 3 deletions regressiontests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@

<jar-plugin.automaticModuleName>org.apache.causeway.regressiontests</jar-plugin.automaticModuleName>
<git-plugin.propertiesDir>org/apache/causeway/regressiontests</git-plugin.propertiesDir>

<!-- override surefire defaults from bom, as this is not a Java module yet -->
<surefire-plugin.argLine>-Xmx384m</surefire-plugin.argLine>
</properties>


Expand Down
3 changes: 0 additions & 3 deletions retired/shiro/security/shiro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
<!-- apache shiro is not migrated to JPMS yet, so no point in converting ours to JPMS -->
<jar-plugin.automaticModuleName>org.apache.causeway.security.shiro</jar-plugin.automaticModuleName>
<git-plugin.propertiesDir>org/apache/causeway/security/shiro</git-plugin.propertiesDir>

<!-- override surefire defaults from bom, as this is not a Java module yet -->
<surefire-plugin.argLine>-Xmx384m</surefire-plugin.argLine>
</properties>

<dependencies>
Expand Down
3 changes: 0 additions & 3 deletions testing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@

<jar-plugin.automaticModuleName>org.apache.causeway.testing</jar-plugin.automaticModuleName>
<git-plugin.propertiesDir>org/apache/causeway/testing</git-plugin.propertiesDir>

<!-- override surefire defaults from bom, as this is not a Java module yet -->
<surefire-plugin.argLine>-Xmx384m</surefire-plugin.argLine>
</properties>

<build>
Expand Down
3 changes: 0 additions & 3 deletions viewers/restfulobjects/jaxrs-resteasy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
<properties>
<jar-plugin.automaticModuleName>org.apache.causeway.viewer.restfulobjects.jaxrsresteasy</jar-plugin.automaticModuleName>
<git-plugin.propertiesDir>org/apache/causeway/viewer.restfulobjects/jaxrsresteasy</git-plugin.propertiesDir>

<!-- override surefire defaults from bom, as this is not a Java module yet -->
<surefire-plugin.argLine>-Xmx384m</surefire-plugin.argLine>
</properties>

<build>
Expand Down
2 changes: 0 additions & 2 deletions viewers/wicket/viewer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
<properties>
<jar-plugin.automaticModuleName>org.apache.causeway.viewer.wicket.viewer</jar-plugin.automaticModuleName>
<git-plugin.propertiesDir>org/apache/causeway/viewer/wicket/viewer</git-plugin.propertiesDir>
<!-- override surefire defaults from bom, as this is not a Java module yet -->
<surefire-plugin.argLine>-Xmx384m</surefire-plugin.argLine>
</properties>

<build>
Expand Down

0 comments on commit 43a5f3f

Please sign in to comment.