forked from geoserver/geoserver-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gwc - handles workspace-based paths (geoserver#380)
- Loading branch information
Showing
5 changed files
with
157 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...ava/org/geoserver/cloud/autoconfigure/gwc/web/gwc/GeoWebCacheUIAutoConfigurationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package org.geoserver.cloud.autoconfigure.gwc.web.gwc; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
|
||
import org.geoserver.cloud.autoconfigure.gwc.GeoWebCacheContextRunner; | ||
import org.geoserver.cloud.autoconfigure.web.gwc.GeoWebCacheUIAutoConfiguration; | ||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.io.TempDir; | ||
import org.springframework.boot.autoconfigure.AutoConfigurations; | ||
import org.springframework.boot.test.context.runner.WebApplicationContextRunner; | ||
|
||
import java.io.File; | ||
|
||
public class GeoWebCacheUIAutoConfigurationTest { | ||
|
||
WebApplicationContextRunner runner; | ||
|
||
@TempDir File tmpDir; | ||
|
||
@BeforeEach | ||
void setUp() throws Exception { | ||
runner = | ||
GeoWebCacheContextRunner.newMinimalGeoWebCacheContextRunner(tmpDir) | ||
.withPropertyValues("gwc.web-ui=true") | ||
.withConfiguration( | ||
AutoConfigurations.of(GeoWebCacheUIAutoConfiguration.class)); | ||
} | ||
|
||
@Test | ||
void beansForLocalWorkspacePathsHandlingArePresent() { | ||
runner.run( | ||
context -> { | ||
assertNotNull(context.getBean("gwcDemoUrlHandlerMapping")); | ||
assertNotNull(context.getBean("gwcRestWebUrlHandlerMapping")); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters