@@ -98,7 +98,8 @@ public void testMetrics() throws Exception {
98
98
testHome (); // makes sure some requests have been made
99
99
@ SuppressWarnings ("rawtypes" )
100
100
ResponseEntity <Map > entity = this .restTemplate
101
- .withBasicAuth ("user" , getPassword ()).getForEntity ("/application/metrics" , Map .class );
101
+ .withBasicAuth ("user" , getPassword ())
102
+ .getForEntity ("/application/metrics" , Map .class );
102
103
assertThat (entity .getStatusCode ()).isEqualTo (HttpStatus .OK );
103
104
@ SuppressWarnings ("unchecked" )
104
105
Map <String , Object > body = entity .getBody ();
@@ -109,17 +110,18 @@ public void testMetrics() throws Exception {
109
110
public void testEnv () throws Exception {
110
111
@ SuppressWarnings ("rawtypes" )
111
112
ResponseEntity <Map > entity = this .restTemplate
112
- .withBasicAuth ("user" , getPassword ()).getForEntity ("/application/env" , Map .class );
113
+ .withBasicAuth ("user" , getPassword ())
114
+ .getForEntity ("/application/env" , Map .class );
113
115
assertThat (entity .getStatusCode ()).isEqualTo (HttpStatus .OK );
114
116
@ SuppressWarnings ("unchecked" )
115
117
Map <String , Object > body = entity .getBody ();
116
- assertThat (body ).containsKey ("systemProperties " );
118
+ assertThat (body ).containsKey ("propertySources " );
117
119
}
118
120
119
121
@ Test
120
122
public void testHealth () throws Exception {
121
- ResponseEntity <String > entity = this .restTemplate . getForEntity ( "/application/health" ,
122
- String .class );
123
+ ResponseEntity <String > entity = this .restTemplate
124
+ . getForEntity ( "/application/health" , String .class );
123
125
assertThat (entity .getStatusCode ()).isEqualTo (HttpStatus .OK );
124
126
assertThat (entity .getBody ()).contains ("\" status\" :\" UP\" " );
125
127
assertThat (entity .getBody ()).doesNotContain ("\" hello\" :\" 1\" " );
@@ -136,8 +138,8 @@ public void testSecureHealth() throws Exception {
136
138
137
139
@ Test
138
140
public void testInfo () throws Exception {
139
- ResponseEntity <String > entity = this .restTemplate . getForEntity ( "/application/info" ,
140
- String .class );
141
+ ResponseEntity <String > entity = this .restTemplate
142
+ . getForEntity ( "/application/info" , String .class );
141
143
assertThat (entity .getStatusCode ()).isEqualTo (HttpStatus .OK );
142
144
assertThat (entity .getBody ())
143
145
.contains ("\" artifact\" :\" spring-boot-sample-actuator\" " );
@@ -176,7 +178,8 @@ public void testTrace() throws Exception {
176
178
this .restTemplate .getForEntity ("/health" , String .class );
177
179
@ SuppressWarnings ("rawtypes" )
178
180
ResponseEntity <List > entity = this .restTemplate
179
- .withBasicAuth ("user" , getPassword ()).getForEntity ("/application/trace" , List .class );
181
+ .withBasicAuth ("user" , getPassword ())
182
+ .getForEntity ("/application/trace" , List .class );
180
183
assertThat (entity .getStatusCode ()).isEqualTo (HttpStatus .OK );
181
184
@ SuppressWarnings ("unchecked" )
182
185
List <Map <String , Object >> list = entity .getBody ();
@@ -192,7 +195,8 @@ public void traceWithParameterMap() throws Exception {
192
195
this .restTemplate .getForEntity ("/application/health?param1=value1" , String .class );
193
196
@ SuppressWarnings ("rawtypes" )
194
197
ResponseEntity <List > entity = this .restTemplate
195
- .withBasicAuth ("user" , getPassword ()).getForEntity ("/application/trace" , List .class );
198
+ .withBasicAuth ("user" , getPassword ())
199
+ .getForEntity ("/application/trace" , List .class );
196
200
assertThat (entity .getStatusCode ()).isEqualTo (HttpStatus .OK );
197
201
@ SuppressWarnings ("unchecked" )
198
202
List <Map <String , Object >> list = entity .getBody ();
@@ -219,7 +223,8 @@ public void testErrorPageDirectAccess() throws Exception {
219
223
public void testBeans () throws Exception {
220
224
@ SuppressWarnings ("rawtypes" )
221
225
ResponseEntity <List > entity = this .restTemplate
222
- .withBasicAuth ("user" , getPassword ()).getForEntity ("/application/beans" , List .class );
226
+ .withBasicAuth ("user" , getPassword ())
227
+ .getForEntity ("/application/beans" , List .class );
223
228
assertThat (entity .getStatusCode ()).isEqualTo (HttpStatus .OK );
224
229
assertThat (entity .getBody ()).hasSize (1 );
225
230
Map <String , Object > body = (Map <String , Object >) entity .getBody ().get (0 );
0 commit comments