@@ -43,7 +43,6 @@ public class EnvironmentDetailsTest {
4343 @ Test
4444 public void testGetEnvironmentDetail () throws UnknownHostException {
4545 String application = "application" ;
46- String location = "location" ;
4746 String environment = "environment" ;
4847 String hostName = "hostName" ;
4948
@@ -53,15 +52,14 @@ public void testGetEnvironmentDetail() throws UnknownHostException {
5352 PowerMockito .mockStatic (InetAddress .class );
5453 PowerMockito .when (InetAddress .getLocalHost ()).thenReturn (inetAddress );
5554
56- EnvironmentDetail env = EnvironmentDetails .getEnvironmentDetail (application , location , environment );
55+ EnvironmentDetail env = EnvironmentDetails .getEnvironmentDetail (application , environment );
5756
5857 Assert .assertNotNull (env );
5958
6059 Assert .assertEquals (hostName , env .getDeviceName ());
6160 Assert .assertNotNull (env .getAppLocation ());
6261 Assert .assertNull (env .getAppName ());
6362 Assert .assertEquals (application , env .getConfiguredAppName ());
64- Assert .assertEquals (location , env .getConfiguredLocationName ());
6563 Assert .assertEquals (environment , env .getConfiguredEnvironmentName ());
6664 }
6765
@@ -72,21 +70,19 @@ public void testGetEnvironmentDetail() throws UnknownHostException {
7270 @ Test
7371 public void testGetEnvironmentDetailHostnameException () throws UnknownHostException {
7472 String application = "application" ;
75- String location = "location" ;
7673 String environment = "environment" ;
7774
7875 PowerMockito .mockStatic (InetAddress .class );
7976 PowerMockito .when (InetAddress .getLocalHost ()).thenThrow (new RuntimeException ());
8077
81- EnvironmentDetail env = EnvironmentDetails .getEnvironmentDetail (application , location , environment );
78+ EnvironmentDetail env = EnvironmentDetails .getEnvironmentDetail (application , environment );
8279
8380 Assert .assertNotNull (env );
8481
8582 Assert .assertNull (env .getDeviceName ());
8683 Assert .assertNotNull (env .getAppLocation ());
8784 Assert .assertNull (env .getAppName ());
8885 Assert .assertEquals (application , env .getConfiguredAppName ());
89- Assert .assertEquals (location , env .getConfiguredLocationName ());
9086 Assert .assertEquals (environment , env .getConfiguredEnvironmentName ());
9187 }
9288}
0 commit comments