From f4c346935295cd6365c11112f919ce8c1eef43e8 Mon Sep 17 00:00:00 2001 From: chrisoberle Date: Mon, 23 Oct 2017 19:55:12 -0400 Subject: [PATCH] update test method names per BAEL-1187 (#2851) * BAEL-1187 - Mapping Nested Values with Jackson * minor naming and formatting changes to align with standards * update formatting and jackson version * update test method names --- .../nested/DeserializeWithNestedPropertiesUnitTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jackson/src/test/java/com/baeldung/jackson/deserialization/nested/DeserializeWithNestedPropertiesUnitTest.java b/jackson/src/test/java/com/baeldung/jackson/deserialization/nested/DeserializeWithNestedPropertiesUnitTest.java index 6e762caa64..037bc7e880 100644 --- a/jackson/src/test/java/com/baeldung/jackson/deserialization/nested/DeserializeWithNestedPropertiesUnitTest.java +++ b/jackson/src/test/java/com/baeldung/jackson/deserialization/nested/DeserializeWithNestedPropertiesUnitTest.java @@ -15,7 +15,7 @@ public class DeserializeWithNestedPropertiesUnitTest { private String SOURCE_JSON = "{\"id\":\"957c43f2-fa2e-42f9-bf75-6e3d5bb6960a\",\"name\":\"The Best Product\",\"brand\":{\"id\":\"9bcd817d-0141-42e6-8f04-e5aaab0980b6\",\"name\":\"ACME Products\",\"owner\":{\"id\":\"b21a80b1-0c09-4be3-9ebd-ea3653511c13\",\"name\":\"Ultimate Corp, Inc.\"}}}"; @Test - public void whenUsingJacksonAnnotations_thenOk() throws IOException { + public void whenUsingAnnotations_thenOk() throws IOException { Product product = new ObjectMapper().readerFor(Product.class) .readValue(SOURCE_JSON); @@ -25,7 +25,7 @@ public class DeserializeWithNestedPropertiesUnitTest { } @Test - public void whenUsingJacksonJsonNode_thenOk() throws IOException { + public void whenUsingJsonNode_thenOk() throws IOException { JsonNode productNode = new ObjectMapper().readTree(SOURCE_JSON); Product product = new Product(); @@ -47,7 +47,7 @@ public class DeserializeWithNestedPropertiesUnitTest { } @Test - public void whenUsingJacksonDeserializerManuallyRegistered_thenOk() throws IOException { + public void whenUsingDeserializerManuallyRegistered_thenOk() throws IOException { ObjectMapper mapper = new ObjectMapper(); SimpleModule module = new SimpleModule(); module.addDeserializer(Product.class, new ProductDeserializer()); @@ -60,7 +60,7 @@ public class DeserializeWithNestedPropertiesUnitTest { } @Test - public void whenUsingJacksonDeserializerAutoRegistered_thenOk() throws IOException { + public void whenUsingDeserializerAutoRegistered_thenOk() throws IOException { ObjectMapper mapper = new ObjectMapper(); Product product = mapper.readValue(SOURCE_JSON, Product.class); assertEquals(product.getName(), "The Best Product");