Skip to content

Commit f4c3469

Browse files
chrisoberleKevinGilmore
authored andcommitted
update test method names per BAEL-1187 (eugenp#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
1 parent 1c896ec commit f4c3469

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎jackson/src/test/java/com/baeldung/jackson/deserialization/nested/DeserializeWithNestedPropertiesUnitTest.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class DeserializeWithNestedPropertiesUnitTest {
1515
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.\"}}}";
1616

1717
@Test
18-
public void whenUsingJacksonAnnotations_thenOk() throws IOException {
18+
public void whenUsingAnnotations_thenOk() throws IOException {
1919
Product product = new ObjectMapper().readerFor(Product.class)
2020
.readValue(SOURCE_JSON);
2121

@@ -25,7 +25,7 @@ public void whenUsingJacksonAnnotations_thenOk() throws IOException {
2525
}
2626

2727
@Test
28-
public void whenUsingJacksonJsonNode_thenOk() throws IOException {
28+
public void whenUsingJsonNode_thenOk() throws IOException {
2929
JsonNode productNode = new ObjectMapper().readTree(SOURCE_JSON);
3030

3131
Product product = new Product();
@@ -47,7 +47,7 @@ public void whenUsingJacksonJsonNode_thenOk() throws IOException {
4747
}
4848

4949
@Test
50-
public void whenUsingJacksonDeserializerManuallyRegistered_thenOk() throws IOException {
50+
public void whenUsingDeserializerManuallyRegistered_thenOk() throws IOException {
5151
ObjectMapper mapper = new ObjectMapper();
5252
SimpleModule module = new SimpleModule();
5353
module.addDeserializer(Product.class, new ProductDeserializer());
@@ -60,7 +60,7 @@ public void whenUsingJacksonDeserializerManuallyRegistered_thenOk() throws IOExc
6060
}
6161

6262
@Test
63-
public void whenUsingJacksonDeserializerAutoRegistered_thenOk() throws IOException {
63+
public void whenUsingDeserializerAutoRegistered_thenOk() throws IOException {
6464
ObjectMapper mapper = new ObjectMapper();
6565
Product product = mapper.readValue(SOURCE_JSON, Product.class);
6666
assertEquals(product.getName(), "The Best Product");

0 commit comments

Comments
 (0)