aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authordeveloperKurt <mustafakurt.business@gmail.com>2020-01-02 09:17:23 +0300
committerdeveloperKurt <mustafakurt.business@gmail.com>2020-01-02 09:17:23 +0300
commitaff84ec3ae6faf7d930319329d8750634195445a (patch)
tree9a5bcf6da0ef088112de92be591d71e1a1d2f7d9 /src/test/java
parent1c43e31b622eba08b14079c03f9ad1861b4a0868 (diff)
downloadtrackermap-server-aff84ec3ae6faf7d930319329d8750634195445a.tar.gz
trackermap-server-aff84ec3ae6faf7d930319329d8750634195445a.tar.bz2
trackermap-server-aff84ec3ae6faf7d930319329d8750634195445a.zip
Implemented project's code style
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/helper/IpRetrieverTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/org/traccar/helper/IpRetrieverTest.java b/src/test/java/org/traccar/helper/IpRetrieverTest.java
index 628b5dd63..63e2c0073 100644
--- a/src/test/java/org/traccar/helper/IpRetrieverTest.java
+++ b/src/test/java/org/traccar/helper/IpRetrieverTest.java
@@ -16,22 +16,22 @@ public class IpRetrieverTest {
private MockHttpServletRequest mockHttpServletRequest;
@Before
- public void init(){
+ public void init() {
mockHttpServletRequest = new MockHttpServletRequest();
}
@Test
- public void testIpBehindReverseProxy(){
+ public void testIpBehindReverseProxy() {
mockHttpServletRequest.setRemoteAddr(GATEWAY_IP_ADDRESS);
- mockHttpServletRequest.addHeader("X-FORWARDED-FOR",IP_ADDRESS_BEHIND_REVERSE_PROXY);
+ mockHttpServletRequest.addHeader("X-FORWARDED-FOR", IP_ADDRESS_BEHIND_REVERSE_PROXY);
assertEquals(NORMAL_IP_ADDRESS, IpRetriever.retrieveIP(mockHttpServletRequest));
}
@Test
- public void testNormalIp(){
- mockHttpServletRequest.setRemoteAddr(NORMAL_IP_ADDRESS);
- assertEquals(NORMAL_IP_ADDRESS, IpRetriever.retrieveIP(mockHttpServletRequest));
+ public void testNormalIp() {
+ mockHttpServletRequest.setRemoteAddr(NORMAL_IP_ADDRESS);
+ assertEquals(NORMAL_IP_ADDRESS, IpRetriever.retrieveIP(mockHttpServletRequest));
}