You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2026/08/18 07:25:37 UTC

(causeway) branch main updated: CAUSEWAY-4044: compile fix (layout tests)

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

andi-huber pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/main by this push:
     new 91c10f39eae CAUSEWAY-4044: compile fix (layout tests)
91c10f39eae is described below

commit 91c10f39eae67aafed1eae56e3a5a8489812085d
Author: andi-huber <ah...@apache.org>
AuthorDate: Tue Aug 18 09:25:32 2026 +0200

    CAUSEWAY-4044: compile fix (layout tests)
---
 .../integtest/Layout_Counter_IntegTest.java        | 68 +++++++++++++++-------
 .../integtest/Layout_SimpleObject_IntegTest.java   |  3 +-
 2 files changed, 48 insertions(+), 23 deletions(-)

diff --git a/regressiontests/layouts/src/test/java/org/apache/causeway/regressiontests/layouts/integtest/Layout_Counter_IntegTest.java b/regressiontests/layouts/src/test/java/org/apache/causeway/regressiontests/layouts/integtest/Layout_Counter_IntegTest.java
index 57524ca4b14..0e4d0138ca6 100644
--- a/regressiontests/layouts/src/test/java/org/apache/causeway/regressiontests/layouts/integtest/Layout_Counter_IntegTest.java
+++ b/regressiontests/layouts/src/test/java/org/apache/causeway/regressiontests/layouts/integtest/Layout_Counter_IntegTest.java
@@ -144,6 +144,7 @@ protected Counter newCounter(final String name) {
     void actionNoPosition() {
 
         // given
+        @SuppressWarnings("unused")
         var objectSpecification = specificationLoader.loadSpecification(Counter.class);
 
         // when
@@ -151,7 +152,8 @@ void actionNoPosition() {
 
         // then
         assertThat(action).isNotNull();
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -178,7 +180,8 @@ void actionPositionBelow() {
         var action = lookupAction("actionPositionBelow");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -205,7 +208,8 @@ void actionPositionPanel() {
         var action = lookupAction("actionPositionPanel");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -232,7 +236,8 @@ void actionDetailsFieldSetNoPosition() {
         var action = lookupAction("actionDetailsFieldSetNoPosition");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -260,7 +265,8 @@ void actionDetailsFieldSetPositionBelow() {
         var action = lookupAction("actionDetailsFieldSetPositionBelow");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -288,7 +294,8 @@ void actionDetailsFieldSetPositionPanel() {
         var action = lookupAction("actionDetailsFieldSetPositionPanel");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -316,7 +323,8 @@ void actionDetailsFieldSetPositionPanelDropdown() {
         var action = lookupAction("actionDetailsFieldSetPositionPanelDropdown");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -344,7 +352,8 @@ void actionEmptyFieldSetNoPosition() {
         var action = lookupAction("actionEmptyFieldSetNoPosition");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -371,7 +380,8 @@ void actionEmptyFieldSetPositionBelow() {
         var action = lookupAction("actionEmptyFieldSetPositionBelow");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -398,7 +408,8 @@ void actionEmptyFieldSetPositionPanel() {
         var action = lookupAction("actionEmptyFieldSetPositionPanel");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -425,7 +436,8 @@ void actionEmptyFieldSetPositionPanelDropdown() {
         var action = lookupAction("actionEmptyFieldSetPositionPanelDropdown");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -452,7 +464,8 @@ void actionAssociatedWithNamePropertyNoPosition() {
         var action = lookupAction("actionAssociatedWithNamePropertyNoPosition");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -479,7 +492,8 @@ void actionAssociatedWithNamePropertyBelow() {
         var action = lookupAction("actionAssociatedWithNamePropertyBelow");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -506,7 +520,8 @@ void actionAssociatedWithNamePropertyPanel() {
         var action = lookupAction("actionAssociatedWithNamePropertyPanel");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -533,7 +548,8 @@ void actionAssociatedWithNamePropertyPanelDropdown() {
         var action = lookupAction("actionAssociatedWithNamePropertyPanelDropdown");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -560,7 +576,8 @@ void actionAssociatedWithNamePropertyAndDetailsFieldSetNoPosition() {
         var action = lookupAction("actionAssociatedWithNamePropertyAndDetailsFieldSetNoPosition");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -587,7 +604,8 @@ void actionAssociatedWithNameAndDetailsFieldSetPropertyBelow() {
         var action = lookupAction("actionAssociatedWithNameAndDetailsFieldSetPropertyBelow");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -614,7 +632,8 @@ void actionAssociatedWithNamePropertyAndDetailsFieldSetPanel() {
         var action = lookupAction("actionAssociatedWithNamePropertyAndDetailsFieldSetPanel");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -641,7 +660,8 @@ void actionAssociatedWithNamePropertyAndDetailsFieldSetPanelDropdown() {
         var action = lookupAction("actionAssociatedWithNamePropertyAndDetailsFieldSetPanelDropdown");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -668,7 +688,8 @@ void actionAssociatedWithNamePropertyButEmptyFieldSetNoPosition() {
         var action = lookupAction("actionAssociatedWithNamePropertyButEmptyFieldSetNoPosition");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -695,7 +716,8 @@ void actionAssociatedWithNamePropertyAndSequenceNoPosition() {
         var action = lookupAction("actionAssociatedWithNamePropertyAndSequenceNoPosition");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -722,7 +744,8 @@ void openRestApi() {
         var action = lookupAction("openRestApi");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)
@@ -772,6 +795,7 @@ void clearHints() {
 
     private ObjectAction lookupAction(final String id) {
         var objectSpecification = specificationLoader.loadSpecification(Counter.class);
+        @SuppressWarnings("unused")
         List<ObjectAction> objectActions = objectSpecification.streamAnyActions(MixedIn.INCLUDED).collect(Collectors.toList());
         return objectSpecification.streamAnyActions(MixedIn.INCLUDED).filter(x -> x.getId().equals(id)).findFirst().orElseThrow();
     }
diff --git a/regressiontests/layouts/src/test/java/org/apache/causeway/regressiontests/layouts/integtest/Layout_SimpleObject_IntegTest.java b/regressiontests/layouts/src/test/java/org/apache/causeway/regressiontests/layouts/integtest/Layout_SimpleObject_IntegTest.java
index c15f73d6169..1cf558239c9 100644
--- a/regressiontests/layouts/src/test/java/org/apache/causeway/regressiontests/layouts/integtest/Layout_SimpleObject_IntegTest.java
+++ b/regressiontests/layouts/src/test/java/org/apache/causeway/regressiontests/layouts/integtest/Layout_SimpleObject_IntegTest.java
@@ -93,7 +93,8 @@ void openRestApi() {
         var action = lookupAction("openRestApi");
 
         // when, then
-        List<Facet> facets = action.getFacetHolder().streamFacets().collect(Collectors.toList());
+        @SuppressWarnings("unused")
+        List<Facet> facets = action.facetHolder().streamFacets().collect(Collectors.toList());
 
         var actionPositionFacet = action.lookupFacet(ActionPositionFacet.class).orElse(null);
         assertThat(actionPositionFacet)