diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2023-04-05 14:35:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-05 14:35:55 -0700 |
commit | 44d188ece3edfb2e3ff10094465d5a1d1ab03f6a (patch) | |
tree | d70460f9284b4e8ff06b264172dc722bc696c849 /src/test/java/org/traccar | |
parent | 17dff9e974ac863d8e37f7b95115218b55269cda (diff) | |
parent | 88a56f29fff1ab252a2c415f0d44a22192dd6b66 (diff) | |
download | trackermap-server-44d188ece3edfb2e3ff10094465d5a1d1ab03f6a.tar.gz trackermap-server-44d188ece3edfb2e3ff10094465d5a1d1ab03f6a.tar.bz2 trackermap-server-44d188ece3edfb2e3ff10094465d5a1d1ab03f6a.zip |
Merge pull request #5064 from dan-r/openid-discovery
Updates to OpenID Implementation
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r-- | src/test/java/org/traccar/helper/WebHelperTest.java (renamed from src/test/java/org/traccar/helper/ServletHelperTest.java) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/traccar/helper/ServletHelperTest.java b/src/test/java/org/traccar/helper/WebHelperTest.java index 3a645bc36..3a7329cb8 100644 --- a/src/test/java/org/traccar/helper/ServletHelperTest.java +++ b/src/test/java/org/traccar/helper/WebHelperTest.java @@ -8,7 +8,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -public class ServletHelperTest { +public class WebHelperTest { @Test public void testRetrieveRemoteAddressProxyMultiple() { @@ -16,7 +16,7 @@ public class ServletHelperTest { when(request.getRemoteAddr()).thenReturn("147.120.1.5"); when(request.getHeader("X-FORWARDED-FOR")).thenReturn("231.23.45.65, 10.20.10.33, 10.20.20.34"); - assertEquals("231.23.45.65", ServletHelper.retrieveRemoteAddress(request)); + assertEquals("231.23.45.65", WebHelper.retrieveRemoteAddress(request)); } @Test @@ -25,7 +25,7 @@ public class ServletHelperTest { when(request.getRemoteAddr()).thenReturn("147.120.1.5"); when(request.getHeader("X-FORWARDED-FOR")).thenReturn("231.23.45.65"); - assertEquals("231.23.45.65", ServletHelper.retrieveRemoteAddress(request)); + assertEquals("231.23.45.65", WebHelper.retrieveRemoteAddress(request)); } @Test @@ -33,7 +33,7 @@ public class ServletHelperTest { HttpServletRequest request = mock(HttpServletRequest.class); when(request.getRemoteAddr()).thenReturn("231.23.45.65"); - assertEquals("231.23.45.65", ServletHelper.retrieveRemoteAddress(request)); + assertEquals("231.23.45.65", WebHelper.retrieveRemoteAddress(request)); } } |