Skip to content

Commit

Permalink
[pinpoint-apm#8965] Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Jun 23, 2022
1 parent 9fd59aa commit 3d87341
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
@SharedTestLifeCycleClass(HttpWebServer.class)
public class CxfClientIT {

private static String ADDRESS;
private static String HOST_PORT;

@SharedTestBeforeAllResult
public static void setBeforeAllResult(Properties beforeAllResult) {
ADDRESS = beforeAllResult.getProperty("ADDRESS");
HOST_PORT = beforeAllResult.getProperty("HOST_PORT");
}

public String getAddress() {
return ADDRESS;
return "http://" + HOST_PORT;
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public Properties beforeAll() {
webServer = WebServer.newTestWebServer();

Properties properties = new Properties();
properties.setProperty("ADDRESS", webServer.getCallHttpUrl());
properties.setProperty("HOST_PORT", webServer.getHostAndPort());
return properties;
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
@SharedTestLifeCycleClass(HttpWebServer.class)
public class HttpClientIT {

private static String ADDRESS;
private static String HOST_PORT;

@SharedTestBeforeAllResult
public static void setBeforeAllResult(Properties beforeAllResult) {
ADDRESS = beforeAllResult.getProperty("ADDRESS");
HOST_PORT = beforeAllResult.getProperty("HOST_PORT");
}

public String getAddress() {
return ADDRESS;
return "http://" + HOST_PORT;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public Properties beforeAll() {
webServer = WebServer.newTestWebServer();

Properties properties = new Properties();
properties.setProperty("ADDRESS", webServer.getCallHttpUrl());
properties.setProperty("HOST_PORT", webServer.getHostAndPort());
return properties;
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ public abstract class HttpClientITBase {

@SharedTestBeforeAllResult
public static void setBeforeAllResult(Properties beforeAllResult) {
ADDRESS = beforeAllResult.getProperty("ADDRESS");
HOST_PORT = beforeAllResult.getProperty("HOST_PORT");

}

public String getAddress() {
return ADDRESS;
return "http://" + HOST_PORT;
}

public static String getHostPort() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public Properties beforeAll() {
webServer = WebServer.newTestWebServer();

Properties properties = new Properties();
properties.setProperty("ADDRESS", webServer.getCallHttpUrl());
properties.setProperty("HOST_PORT", webServer.getHostAndPort());
return properties;
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public Properties beforeAll() {
webServer = WebServer.newTestWebServer();

Properties properties = new Properties();
properties.setProperty("ADDRESS", webServer.getCallHttpUrl());
properties.setProperty("HOST_PORT", webServer.getHostAndPort());
return properties;
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
@SharedTestLifeCycleClass(HttpWebServer.class)
public class RestTemplateIT {

private static String ADDRESS;
private static String HOST_PORT;
@SharedTestBeforeAllResult
public static void setBeforeAllResult(Properties beforeAllResult) {
ADDRESS = beforeAllResult.getProperty("ADDRESS");
HOST_PORT = beforeAllResult.getProperty("HOST_PORT");
}

public static String getCallUrl() {
return ADDRESS;
return "http://" + HOST_PORT;
}


Expand Down

0 comments on commit 3d87341

Please sign in to comment.