File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
cf-java-logging-support-servlet
src/test/java/com/sap/hcp/cf/logging/servlet/filter Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 67
67
<dependency >
68
68
<groupId >com.fasterxml.jackson.core</groupId >
69
69
<artifactId >jackson-databind</artifactId >
70
- <version >2.9. 10.1</version >
70
+ <version >2.10.1</version >
71
71
</dependency >
72
72
73
73
<!-- testing -->
Original file line number Diff line number Diff line change @@ -189,19 +189,19 @@ private String getBaseUrl() {
189
189
}
190
190
191
191
private String getCorrelationIdGenerated () throws IOException {
192
- Map <Object , Object > generationLog = systemOut .fineLineAsMapWith ("logger" , LogContext .class .getName ());
192
+ Map <String , Object > generationLog = systemOut .fineLineAsMapWith ("logger" , LogContext .class .getName ());
193
193
if (generationLog == null ) {
194
194
return null ;
195
195
}
196
196
return generationLog .get (Fields .CORRELATION_ID ) == null ? null
197
197
: generationLog .get (Fields .CORRELATION_ID ).toString ();
198
198
}
199
199
200
- private Map <Object , Object > getRequestMessage () throws IOException {
200
+ private Map <String , Object > getRequestMessage () throws IOException {
201
201
return systemOut .fineLineAsMapWith ("msg" , REQUEST_RECEIVED );
202
202
}
203
203
204
- private Map <Object , Object > getRequestLog () throws IOException {
204
+ private Map <String , Object > getRequestLog () throws IOException {
205
205
return systemOut .fineLineAsMapWith ("layer" , "[SERVLET]" );
206
206
}
207
207
Original file line number Diff line number Diff line change @@ -33,17 +33,17 @@ public String toString() {
33
33
return output .toString ();
34
34
}
35
35
36
- public Map <Object , Object > fineLineAsMapWith (String key , String expected ) throws IOException {
36
+ public Map <String , Object > fineLineAsMapWith (String key , String expected ) throws IOException {
37
37
for (String line : output .toString ().split ("\n " )) {
38
- Map <Object , Object > map = JSON .std .mapFrom (line );
38
+ Map <String , Object > map = JSON .std .mapFrom (line );
39
39
if (expected .equals (getAsString (map , key ))) {
40
40
return map ;
41
41
}
42
42
}
43
43
return Collections .emptyMap ();
44
44
}
45
45
46
- private String getAsString (Map <Object , Object > map , String key ) {
46
+ private String getAsString (Map <String , Object > map , String key ) {
47
47
Object value = map .get (key );
48
48
return value != null ? value .toString () : null ;
49
49
}
Original file line number Diff line number Diff line change 124
124
125
125
<properties >
126
126
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
127
- <jackson-jr .version>2.9.9 </jackson-jr .version>
127
+ <jackson-jr .version>2.10.1 </jackson-jr .version>
128
128
<slf4j .version>1.7.25</slf4j .version>
129
129
<logback .version>1.2.3</logback .version>
130
130
<log4j2 .version>2.8.2</log4j2 .version>
135
135
<junit .version>4.12</junit .version>
136
136
<mockito .version>1.9.5</mockito .version>
137
137
<surefire .plugin.version>2.18.1</surefire .plugin.version>
138
- <animal .sniffer.version>1.14 </animal .sniffer.version>
138
+ <animal .sniffer.version>1.18 </animal .sniffer.version>
139
139
<exec .plugin.version>1.4.0</exec .plugin.version>
140
140
<javadoc .plugin.version>2.10.3</javadoc .plugin.version>
141
141
<gpg .plugin.version>1.5</gpg .plugin.version>
You can’t perform that action at this time.
0 commit comments