From ab83a77d6c8240fee857f7e3b98dd121c6c73d26 Mon Sep 17 00:00:00 2001 From: Gabriel Roldan Date: Fri, 20 Sep 2024 00:32:24 -0300 Subject: [PATCH] Fix CssStylingConfigurationTest, it now requires the GeoServerExtensions bean Sine upstream commit 6e6ace9871c793311fefcaf0df72f70589e1ba34, `org.geoserver.community.css.web.CssHandler` requires the extensions bean on its constructor. Add it to the AutoConfiguration test. --- .../wms/extensions/CssStylingConfigurationTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/starters/wms-extensions/src/test/java/org/geoserver/cloud/autoconfigure/wms/extensions/CssStylingConfigurationTest.java b/src/starters/wms-extensions/src/test/java/org/geoserver/cloud/autoconfigure/wms/extensions/CssStylingConfigurationTest.java index ee6f4fa24..c13b58986 100644 --- a/src/starters/wms-extensions/src/test/java/org/geoserver/cloud/autoconfigure/wms/extensions/CssStylingConfigurationTest.java +++ b/src/starters/wms-extensions/src/test/java/org/geoserver/cloud/autoconfigure/wms/extensions/CssStylingConfigurationTest.java @@ -8,6 +8,7 @@ import org.geoserver.catalog.SLDHandler; import org.geoserver.community.css.web.CssHandler; +import org.geoserver.platform.GeoServerExtensions; import org.geoserver.platform.ModuleStatusImpl; import org.junit.jupiter.api.Test; import org.springframework.boot.autoconfigure.AutoConfigurations; @@ -22,6 +23,7 @@ class CssStylingConfigurationTest { private final ApplicationContextRunner contextRunner = new ApplicationContextRunner() + .withBean("extensions", GeoServerExtensions.class) .withConfiguration(AutoConfigurations.of(CssStylingConfiguration.class)); @Test