Skip to content

Commit 2e436ce

Browse files
committed
BAEL-2475: Rename tests
1 parent 6601633 commit 2e436ce

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

jackson/src/test/java/com/baeldung/jackson/deserialization/immutable/ImmutableObjectDeserializationUnitTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public class ImmutableObjectDeserializationUnitTest {
1111

1212
@Test
13-
public void testPublicConstructor() throws IOException {
13+
public void whenPublicConstructorIsUsed_thenObjectIsDeserialized() throws IOException {
1414
final String json = "{\"name\":\"Frank\",\"age\":50}";
1515
Person person = new ObjectMapper().readValue(json, Person.class);
1616

@@ -19,7 +19,7 @@ public void testPublicConstructor() throws IOException {
1919
}
2020

2121
@Test
22-
public void testBuilderNullField() throws IOException {
22+
public void whenBuilderIsUsedAndFieldIsNull_thenObjectIsDeserialized() throws IOException {
2323
final String json = "{\"name\":\"Frank\",\"age\":50}";
2424
MaritalAwarePerson person = new ObjectMapper().readValue(json, MaritalAwarePerson.class);
2525

@@ -29,7 +29,7 @@ public void testBuilderNullField() throws IOException {
2929
}
3030

3131
@Test
32-
public void testBuilderAllFields() throws IOException {
32+
public void whenBuilderIsUsedAndAllFieldsPresent_thenObjectIsDeserialized() throws IOException {
3333
final String json = "{\"name\":\"Frank\",\"age\":50,\"married\":true}";
3434
MaritalAwarePerson person = new ObjectMapper().readValue(json, MaritalAwarePerson.class);
3535

0 commit comments

Comments
 (0)