@Test public void getSettings_OnlySingletonReturned_FirstAndSecondReturnObjectsAreSame() { RaygunSettings raygunSettings1 = RaygunSettings.getSettings(); RaygunSettings raygunSettings2 = RaygunSettings.getSettings(); assertEquals(raygunSettings1, raygunSettings2); }
public static RaygunSettings getSettings() { if (RaygunSettings.raygunSettings == null) { RaygunSettings.raygunSettings = new RaygunSettings(); } return RaygunSettings.raygunSettings; }
RaygunSettings { public static RaygunSettings getSettings() { if (RaygunSettings.raygunSettings == null) { RaygunSettings.raygunSettings = new RaygunSettings(); } return RaygunSettings.raygunSettings; } }
RaygunSettings { public static RaygunSettings getSettings() { if (RaygunSettings.raygunSettings == null) { RaygunSettings.raygunSettings = new RaygunSettings(); } return RaygunSettings.raygunSettings; } private  RaygunSettings(); }
RaygunSettings { public static RaygunSettings getSettings() { if (RaygunSettings.raygunSettings == null) { RaygunSettings.raygunSettings = new RaygunSettings(); } return RaygunSettings.raygunSettings; } private  RaygunSettings(); static RaygunSettings getSettings(); String getApiEndPoint(); Proxy getHttpProxy(); void setHttpProxy(String host, int port); void setConnectTimeout(Integer ms); Integer getConnectTimeout(); }
RaygunSettings { public static RaygunSettings getSettings() { if (RaygunSettings.raygunSettings == null) { RaygunSettings.raygunSettings = new RaygunSettings(); } return RaygunSettings.raygunSettings; } private  RaygunSettings(); static RaygunSettings getSettings(); String getApiEndPoint(); Proxy getHttpProxy(); void setHttpProxy(String host, int port); void setConnectTimeout(Integer ms); Integer getConnectTimeout();  }