File tree Expand file tree Collapse file tree 8 files changed +10
-15
lines changed
cxf-it/src/test/java/com/navercorp/pinpoint/plugin/cxf
httpclient3-it/src/test/java/com/navercorp/pinpoint/plugin/httpclient3
httpclient4-it/src/test/java/com/navercorp/pinpoint/plugin/httpclient4
spring-it/src/test/java/com/navercorp/pinpoint/plugin/spring/web Expand file tree Collapse file tree 8 files changed +10
-15
lines changed Original file line number Diff line number Diff line change 54
54
@ SharedTestLifeCycleClass (HttpWebServer .class )
55
55
public class CxfClientIT {
56
56
57
- private static String ADDRESS ;
57
+ private static String HOST_PORT ;
58
58
59
59
@ SharedTestBeforeAllResult
60
60
public static void setBeforeAllResult (Properties beforeAllResult ) {
61
- ADDRESS = beforeAllResult .getProperty ("ADDRESS " );
61
+ HOST_PORT = beforeAllResult .getProperty ("HOST_PORT " );
62
62
}
63
63
64
64
public String getAddress () {
65
- return ADDRESS ;
65
+ return "http://" + HOST_PORT ;
66
66
}
67
67
68
68
@ Test
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ public Properties beforeAll() {
14
14
webServer = WebServer .newTestWebServer ();
15
15
16
16
Properties properties = new Properties ();
17
- properties .setProperty ("ADDRESS" , webServer .getCallHttpUrl ());
18
17
properties .setProperty ("HOST_PORT" , webServer .getHostAndPort ());
19
18
return properties ;
20
19
} catch (Exception e ) {
Original file line number Diff line number Diff line change 47
47
@ SharedTestLifeCycleClass (HttpWebServer .class )
48
48
public class HttpClientIT {
49
49
50
- private static String ADDRESS ;
50
+ private static String HOST_PORT ;
51
51
52
52
@ SharedTestBeforeAllResult
53
53
public static void setBeforeAllResult (Properties beforeAllResult ) {
54
- ADDRESS = beforeAllResult .getProperty ("ADDRESS " );
54
+ HOST_PORT = beforeAllResult .getProperty ("HOST_PORT " );
55
55
}
56
56
57
57
public String getAddress () {
58
- return ADDRESS ;
58
+ return "http://" + HOST_PORT ;
59
59
}
60
60
61
61
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ public Properties beforeAll() {
14
14
webServer = WebServer .newTestWebServer ();
15
15
16
16
Properties properties = new Properties ();
17
- properties .setProperty ("ADDRESS" , webServer .getCallHttpUrl ());
18
17
properties .setProperty ("HOST_PORT" , webServer .getHostAndPort ());
19
18
return properties ;
20
19
} catch (Exception e ) {
Original file line number Diff line number Diff line change @@ -27,13 +27,12 @@ public abstract class HttpClientITBase {
27
27
28
28
@ SharedTestBeforeAllResult
29
29
public static void setBeforeAllResult (Properties beforeAllResult ) {
30
- ADDRESS = beforeAllResult .getProperty ("ADDRESS" );
31
30
HOST_PORT = beforeAllResult .getProperty ("HOST_PORT" );
32
31
33
32
}
34
33
35
34
public String getAddress () {
36
- return ADDRESS ;
35
+ return "http://" + HOST_PORT ;
37
36
}
38
37
39
38
public static String getHostPort () {
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ public Properties beforeAll() {
14
14
webServer = WebServer .newTestWebServer ();
15
15
16
16
Properties properties = new Properties ();
17
- properties .setProperty ("ADDRESS" , webServer .getCallHttpUrl ());
18
17
properties .setProperty ("HOST_PORT" , webServer .getHostAndPort ());
19
18
return properties ;
20
19
} catch (Exception e ) {
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ public Properties beforeAll() {
14
14
webServer = WebServer .newTestWebServer ();
15
15
16
16
Properties properties = new Properties ();
17
- properties .setProperty ("ADDRESS" , webServer .getCallHttpUrl ());
18
17
properties .setProperty ("HOST_PORT" , webServer .getHostAndPort ());
19
18
return properties ;
20
19
} catch (Exception e ) {
Original file line number Diff line number Diff line change 53
53
@ SharedTestLifeCycleClass (HttpWebServer .class )
54
54
public class RestTemplateIT {
55
55
56
- private static String ADDRESS ;
56
+ private static String HOST_PORT ;
57
57
@ SharedTestBeforeAllResult
58
58
public static void setBeforeAllResult (Properties beforeAllResult ) {
59
- ADDRESS = beforeAllResult .getProperty ("ADDRESS " );
59
+ HOST_PORT = beforeAllResult .getProperty ("HOST_PORT " );
60
60
}
61
61
62
62
public static String getCallUrl () {
63
- return ADDRESS ;
63
+ return "http://" + HOST_PORT ;
64
64
}
65
65
66
66
You can’t perform that action at this time.
0 commit comments