Skip to content

Commit

Permalink
#2175: Generalized normalizing of homepage url + unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
ulischulte committed Dec 23, 2022
1 parent 73baf01 commit f9a34ee
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
@ExtendWith(MockitoExtension.class)
public class AdminServerUiAutoConfigurationTest implements WithAssertions {

@Test
void testNormalizeHomepageUrl() {
assertThat(AdminServerUiAutoConfiguration.normalizeHomepageUrl("/test/")).isEqualTo("/test");
}

@Nested
public class ReactiveUiConfigurationTest {

Expand Down Expand Up @@ -149,9 +154,4 @@ public void contextPathIsRespectedInIncludedRoutes(String routeIncludes) {

}

@Test
void testNormalizeHomepageUrl() {
assertThat(AdminServerUiAutoConfiguration.normalizeHomepageUrl("/test/")).isEqualTo("/test");
}

}

0 comments on commit f9a34ee

Please sign in to comment.