1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -81,8 +81,6 @@ public void canEncode() {
81
81
82
82
// SPR-15910
83
83
assertThat (this .encoder .canEncode (ResolvableType .forClass (Object .class ), APPLICATION_OCTET_STREAM )).isFalse ();
84
-
85
-
86
84
}
87
85
88
86
@ Override
@@ -100,7 +98,7 @@ public void encode() throws Exception {
100
98
APPLICATION_STREAM_JSON , null );
101
99
}
102
100
103
- @ Test // SPR-15866
101
+ @ Test // SPR-15866
104
102
public void canEncodeWithCustomMimeType () {
105
103
MimeType textJavascript = new MimeType ("text" , "javascript" , StandardCharsets .UTF_8 );
106
104
Jackson2JsonEncoder encoder = new Jackson2JsonEncoder (new ObjectMapper (), textJavascript );
@@ -212,7 +210,7 @@ public void classLevelJsonView() {
212
210
null , hints );
213
211
}
214
212
215
- @ Test // gh-22771
213
+ @ Test // gh-22771
216
214
public void encodeWithFlushAfterWriteOff () {
217
215
ObjectMapper mapper = new ObjectMapper ();
218
216
mapper .configure (SerializationFeature .FLUSH_AFTER_WRITE_VALUE , false );
@@ -235,7 +233,6 @@ public void encodeAscii() {
235
233
.consumeNextWith (expectString ("{\" foo\" :\" foo\" ,\" bar\" :\" bar\" }" ))
236
234
.verifyComplete (),
237
235
new MimeType ("application" , "json" , StandardCharsets .US_ASCII ), null );
238
-
239
236
}
240
237
241
238
0 commit comments