From e9431ce416773b07ea3efc42bc1a4cbaa783114a Mon Sep 17 00:00:00 2001 From: parthiv39731 <70740707+parthiv39731@users.noreply.github.com> Date: Mon, 6 Nov 2023 19:27:07 +0530 Subject: [PATCH] BAEL-7091 Formatting fixed --- .../assertnestedmap/AssertNestedMapUnitTest.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/testing-modules/hamcrest/src/test/java/com/baeldung/hamcrest/assertnestedmap/AssertNestedMapUnitTest.java b/testing-modules/hamcrest/src/test/java/com/baeldung/hamcrest/assertnestedmap/AssertNestedMapUnitTest.java index 42c225695c..b5b4d652a0 100644 --- a/testing-modules/hamcrest/src/test/java/com/baeldung/hamcrest/assertnestedmap/AssertNestedMapUnitTest.java +++ b/testing-modules/hamcrest/src/test/java/com/baeldung/hamcrest/assertnestedmap/AssertNestedMapUnitTest.java @@ -11,7 +11,6 @@ import static org.hamcrest.Matchers.*; import static org.junit.jupiter.api.Assertions.*; public class AssertNestedMapUnitTest { - @Test void givenNestedMap_whenUseJupiterAssertTrueWithoutCasting_thenTest() { Map innerMap = Map.of("city", "Chicago"); @@ -26,8 +25,8 @@ public class AssertNestedMapUnitTest { Map> outerMap = Map.of("address", innerMap); assertAll( - () -> assertTrue(outerMap.containsKey("address")), - () -> assertEquals(outerMap.get("address").get("city"), "Chicago") + () -> assertTrue(outerMap.containsKey("address")), + () -> assertEquals(outerMap.get("address").get("city"), "Chicago") ); } @@ -45,8 +44,8 @@ public class AssertNestedMapUnitTest { Map innerMap = Map.of("city", "Chicago"); Map> outerMap = Map.of("address", innerMap); assertAll( - () -> assertThat(outerMap, hasKey("address")), - () -> assertThat(outerMap.get("address"), hasEntry("city", "Chicago")) + () -> assertThat(outerMap, hasKey("address")), + () -> assertThat(outerMap.get("address"), hasEntry("city", "Chicago")) ); } @@ -82,7 +81,6 @@ public class AssertNestedMapUnitTest { assertThat(outerMap, hasNestedMapEntry("address", innerMap)); } - @Test void givenNestedMap_whenUseHamcrestAssertThatWithCasting_thenTest() { Map innerMap = Map.of("city", "Chicago");