|
1 | 1 | package org.cloudfoundry.multiapps.controller.core.util; |
2 | 2 |
|
| 3 | +import java.net.URL; |
| 4 | +import java.text.MessageFormat; |
| 5 | +import java.time.Duration; |
| 6 | +import java.util.HashMap; |
| 7 | +import java.util.List; |
| 8 | +import java.util.Map; |
| 9 | + |
3 | 10 | import org.cloudfoundry.multiapps.common.test.TestUtil; |
4 | 11 | import org.cloudfoundry.multiapps.common.util.JsonUtil; |
5 | 12 | import org.cloudfoundry.multiapps.controller.core.Messages; |
|
18 | 25 | import org.mockito.Mockito; |
19 | 26 | import org.mockito.MockitoAnnotations; |
20 | 27 |
|
21 | | -import java.net.URL; |
22 | | -import java.text.MessageFormat; |
23 | | -import java.time.Duration; |
24 | | -import java.util.HashMap; |
25 | | -import java.util.List; |
26 | | -import java.util.Map; |
27 | | - |
28 | 28 | import static org.junit.jupiter.api.Assertions.assertEquals; |
29 | 29 | import static org.junit.jupiter.api.Assertions.assertFalse; |
30 | 30 | import static org.junit.jupiter.api.Assertions.assertThrows; |
@@ -70,7 +70,7 @@ void testGetControllerUrl() throws Exception { |
70 | 70 |
|
71 | 71 | @Test |
72 | 72 | void testGetControllerUrlWithInvalidValue() { |
73 | | - String invalidUrl = "blabla"; |
| 73 | + String invalidUrl = "blablabla"; |
74 | 74 | Map<String, String> vcapApplication = Map.of("cf_api", invalidUrl); |
75 | 75 | Exception e = assertThrows(IllegalArgumentException.class, () -> getControllerUrlWithVcapApplication(vcapApplication)); |
76 | 76 | assertEquals(MessageFormat.format(Messages.INVALID_CONTROLLER_URL, invalidUrl), e.getMessage()); |
|
0 commit comments