From be7514f49027e323b58ca35f1f270f9633a6b7c8 Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Tue, 18 Aug 2015 14:28:16 +0200 Subject: [PATCH] Polish Jackson2ObjectMapperBuilderTests --- .../converter/json/Jackson2ObjectMapperBuilderTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java b/spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java index 1cda3670a7..ff5f39a532 100644 --- a/spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java +++ b/spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java @@ -239,7 +239,7 @@ public class Jackson2ObjectMapperBuilderTests { } @Test - public void defaultModules() throws JsonProcessingException, UnsupportedEncodingException { + public void wellKnownModules() throws JsonProcessingException, UnsupportedEncodingException { ObjectMapper objectMapper = Jackson2ObjectMapperBuilder.json().build(); Long timestamp = 1322903730000L; @@ -254,7 +254,7 @@ public class Jackson2ObjectMapperBuilderTests { } @Test // SPR-12634 - public void customizeDefaultModulesWithModule() throws JsonProcessingException, UnsupportedEncodingException { + public void customizeWellKnownModulesWithModule() throws JsonProcessingException, UnsupportedEncodingException { ObjectMapper objectMapper = Jackson2ObjectMapperBuilder.json() .modulesToInstall(new CustomIntegerModule()).build(); DateTime dateTime = new DateTime(1322903730000L, DateTimeZone.UTC); @@ -264,7 +264,7 @@ public class Jackson2ObjectMapperBuilderTests { @Test // SPR-12634 @SuppressWarnings("unchecked") - public void customizeDefaultModulesWithModuleClass() throws JsonProcessingException, UnsupportedEncodingException { + public void customizeWellKnownModulesWithModuleClass() throws JsonProcessingException, UnsupportedEncodingException { ObjectMapper objectMapper = Jackson2ObjectMapperBuilder.json().modulesToInstall(CustomIntegerModule.class).build(); DateTime dateTime = new DateTime(1322903730000L, DateTimeZone.UTC); assertEquals("1322903730000", new String(objectMapper.writeValueAsBytes(dateTime), "UTF-8")); @@ -272,7 +272,7 @@ public class Jackson2ObjectMapperBuilderTests { } @Test // SPR-12634 - public void customizeDefaultModulesWithSerializer() throws JsonProcessingException, UnsupportedEncodingException { + public void customizeWellKnownModulesWithSerializer() throws JsonProcessingException, UnsupportedEncodingException { ObjectMapper objectMapper = Jackson2ObjectMapperBuilder.json() .serializerByType(Integer.class, new CustomIntegerSerializer()).build(); DateTime dateTime = new DateTime(1322903730000L, DateTimeZone.UTC);