From 508a5e414be9f2affe87db948a35eb3d489d2036 Mon Sep 17 00:00:00 2001 From: parthiv39731 <70740707+parthiv39731@users.noreply.github.com> Date: Thu, 20 Jul 2023 02:17:15 +0530 Subject: [PATCH] Update PersonSerializerUnitTest.java (#14441) --- .../exposevsserializedname/PersonSerializerUnitTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/json-modules/gson-2/src/test/java/com/baeldung/gson/exposevsserializedname/PersonSerializerUnitTest.java b/json-modules/gson-2/src/test/java/com/baeldung/gson/exposevsserializedname/PersonSerializerUnitTest.java index 007b34c032..11cf33937d 100644 --- a/json-modules/gson-2/src/test/java/com/baeldung/gson/exposevsserializedname/PersonSerializerUnitTest.java +++ b/json-modules/gson-2/src/test/java/com/baeldung/gson/exposevsserializedname/PersonSerializerUnitTest.java @@ -33,7 +33,7 @@ public class PersonSerializerUnitTest { } @Test - public void WhenUseCustomGson_ThenDonotSerializeAccountNumAndPassword () { + public void whenUseCustomGson_thenDonotSerializeAccountNumAndPassword () { String personJson = PersonSerializer.serializeWithConfiguredGson(person); logger.info(personJson); @@ -42,7 +42,7 @@ public class PersonSerializerUnitTest { } @Test - public void WhenUseDefaultGson_ThenSerializeAccountNumAndPassword () { + public void whenUseDefaultGson_thenSerializeAccountNumAndPassword () { String personJson = PersonSerializer.serializeWithDefaultGson(person); logger.info(personJson); @@ -51,7 +51,7 @@ public class PersonSerializerUnitTest { } @Test - public void whenUseSerializedAnnotation_ThenUseSerializedNameinJsonString() { + public void whenUseSerializedAnnotation_thenUseSerializedNameinJsonString() { String countryJson = PersonSerializer.toJsonString(country); logger.info(countryJson); assertFalse("Test failed: No change in the keys", countryJson.contains("countryName")); @@ -64,7 +64,7 @@ public class PersonSerializerUnitTest { } @Test - public void whenJsonStrCreatedWithCustomKeys_ThenCreateObjUsingGson() { + public void whenJsonStrCreatedWithCustomKeys_thenCreateObjUsingGson() { String countryJson = PersonSerializer.toJsonString(country); Country country = PersonSerializer.fromJsonString(countryJson); logger.info(country.toString());