6464import com .fasterxml .jackson .databind .ser .std .NumberSerializer ;
6565import com .fasterxml .jackson .databind .type .SimpleType ;
6666import com .fasterxml .jackson .dataformat .xml .XmlMapper ;
67-
6867import kotlin .ranges .IntRange ;
6968import org .joda .time .DateTime ;
7069import org .joda .time .DateTimeZone ;
@@ -253,7 +252,7 @@ public void wellKnownModules() throws JsonProcessingException, UnsupportedEncodi
253252 assertEquals (timestamp .toString (), new String (objectMapper .writeValueAsBytes (dateTime ), "UTF-8" ));
254253
255254 Path file = Paths .get ("foo" );
256- assertEquals ( " \" foo \" " , new String (objectMapper .writeValueAsBytes (file ), "UTF-8" ));
255+ assertTrue ( new String (objectMapper .writeValueAsBytes (file ), "UTF-8" ). endsWith ( "foo \" " ));
257256
258257 Optional <String > optional = Optional .of ("test" );
259258 assertEquals ("\" test\" " , new String (objectMapper .writeValueAsBytes (optional ), "UTF-8" ));
@@ -263,7 +262,7 @@ public void wellKnownModules() throws JsonProcessingException, UnsupportedEncodi
263262 assertEquals ("{\" start\" :1,\" end\" :3}" , new String (objectMapper .writeValueAsBytes (range ), "UTF-8" ));
264263 }
265264
266- @ Test // SPR-12634
265+ @ Test // SPR-12634
267266 public void customizeWellKnownModulesWithModule () throws JsonProcessingException , UnsupportedEncodingException {
268267 ObjectMapper objectMapper = Jackson2ObjectMapperBuilder .json ()
269268 .modulesToInstall (new CustomIntegerModule ()).build ();
@@ -272,7 +271,7 @@ public void customizeWellKnownModulesWithModule() throws JsonProcessingException
272271 assertThat (new String (objectMapper .writeValueAsBytes (new Integer (4 )), "UTF-8" ), containsString ("customid" ));
273272 }
274273
275- @ Test // SPR-12634
274+ @ Test // SPR-12634
276275 @ SuppressWarnings ("unchecked" )
277276 public void customizeWellKnownModulesWithModuleClass () throws JsonProcessingException , UnsupportedEncodingException {
278277 ObjectMapper objectMapper = Jackson2ObjectMapperBuilder .json ().modulesToInstall (CustomIntegerModule .class ).build ();
@@ -281,7 +280,7 @@ public void customizeWellKnownModulesWithModuleClass() throws JsonProcessingExce
281280 assertThat (new String (objectMapper .writeValueAsBytes (new Integer (4 )), "UTF-8" ), containsString ("customid" ));
282281 }
283282
284- @ Test // SPR-12634
283+ @ Test // SPR-12634
285284 public void customizeWellKnownModulesWithSerializer () throws JsonProcessingException , UnsupportedEncodingException {
286285 ObjectMapper objectMapper = Jackson2ObjectMapperBuilder .json ()
287286 .serializerByType (Integer .class , new CustomIntegerSerializer ()).build ();
@@ -520,6 +519,7 @@ public void setProperty2(String property2) {
520519 }
521520 }
522521
522+
523523 public static class ListContainer <T > {
524524
525525 private List <T > list ;
0 commit comments