diff options
author | developerKurt <mustafakurt.business@gmail.com> | 2020-01-02 09:17:23 +0300 |
---|---|---|
committer | developerKurt <mustafakurt.business@gmail.com> | 2020-01-02 09:17:23 +0300 |
commit | aff84ec3ae6faf7d930319329d8750634195445a (patch) | |
tree | 9a5bcf6da0ef088112de92be591d71e1a1d2f7d9 /src/test/java/org/traccar/helper | |
parent | 1c43e31b622eba08b14079c03f9ad1861b4a0868 (diff) | |
download | trackermap-server-aff84ec3ae6faf7d930319329d8750634195445a.tar.gz trackermap-server-aff84ec3ae6faf7d930319329d8750634195445a.tar.bz2 trackermap-server-aff84ec3ae6faf7d930319329d8750634195445a.zip |
Implemented project's code style
Diffstat (limited to 'src/test/java/org/traccar/helper')
-rw-r--r-- | src/test/java/org/traccar/helper/IpRetrieverTest.java | 12 |
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)); } |