From cb69c870a9587ae19bd0224c761fad537467979d Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Sat, 25 Mar 2023 06:26:10 -0500 Subject: [PATCH] Fixes issue #43 - Fix code smells (#44) --- .../manorrock/parakeet/YAMLWriterTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/com/manorrock/parakeet/YAMLWriterTest.java b/src/test/java/com/manorrock/parakeet/YAMLWriterTest.java index e17d2e7..ee65c46 100644 --- a/src/test/java/com/manorrock/parakeet/YAMLWriterTest.java +++ b/src/test/java/com/manorrock/parakeet/YAMLWriterTest.java @@ -94,7 +94,7 @@ void testWriteObjectUsingAMap3() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectUsingAMap4() throws Exception { + void testWriteObjectUsingAMap4() throws Exception { HashMap map = new HashMap<>(); ArrayList list = new ArrayList<>(); list.add("a"); @@ -111,7 +111,7 @@ public void testWriteObjectUsingAMap4() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectUsingAMap5() throws Exception { + void testWriteObjectUsingAMap5() throws Exception { LinkedHashMap map = new LinkedHashMap<>(); map.put("value1", true); map.put("value2", false); @@ -127,7 +127,7 @@ public void testWriteObjectUsingAMap5() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectUsingAList() throws Exception { + void testWriteObjectUsingAList() throws Exception { ArrayList list = new ArrayList<>(); list.add("a"); StringWriter stringWriter = new StringWriter(); @@ -142,7 +142,7 @@ public void testWriteObjectUsingAList() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectUsingAList2() throws Exception { + void testWriteObjectUsingAList2() throws Exception { ArrayList list = new ArrayList<>(); list.add("a"); list.add("b"); @@ -158,7 +158,7 @@ public void testWriteObjectUsingAList2() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectUsingAPojo() throws Exception { + void testWriteObjectUsingAPojo() throws Exception { YAMLDemoPojo1 pojo = new YAMLDemoPojo1(); StringWriter stringWriter = new StringWriter(); YAMLWriter writer = new YAMLWriter(stringWriter); @@ -172,7 +172,7 @@ public void testWriteObjectUsingAPojo() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectUsingAPojo2() throws Exception { + void testWriteObjectUsingAPojo2() throws Exception { YAMLDemoPojo2 pojo = new YAMLDemoPojo2(); StringWriter stringWriter = new StringWriter(); YAMLWriter writer = new YAMLWriter(stringWriter); @@ -186,7 +186,7 @@ public void testWriteObjectUsingAPojo2() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectUsingAPojo3() throws Exception { + void testWriteObjectUsingAPojo3() throws Exception { YAMLDemoPojo2 pojo = new YAMLDemoPojo2(); YAMLDemoPojo1 childPojo = new YAMLDemoPojo1(); pojo.setPojo(childPojo); @@ -202,7 +202,7 @@ public void testWriteObjectUsingAPojo3() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectUsingAPojo4() throws Exception { + void testWriteObjectUsingAPojo4() throws Exception { YAMLDemoPojo3 pojo = new YAMLDemoPojo3(); YAMLDemoPojo1 childPojo = new YAMLDemoPojo1(); pojo.setPojo(childPojo); @@ -222,7 +222,7 @@ public void testWriteObjectUsingAPojo4() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectUsingYAMLLiteralBlock() throws Exception { + void testWriteObjectUsingYAMLLiteralBlock() throws Exception { YAMLLiteralBlock block = new YAMLLiteralBlock(); block.setString("This\nis\nliterally\nwritten\nout"); StringWriter stringWriter = new StringWriter(); @@ -237,7 +237,7 @@ public void testWriteObjectUsingYAMLLiteralBlock() throws Exception { * @throws Exception when a serious error occurs. */ @Test - public void testWriteObjectWithYAMLSeriaizerHint() throws Exception { + void testWriteObjectWithYAMLSeriaizerHint() throws Exception { YAMLDemoPojo4 pojo = new YAMLDemoPojo4(); pojo.setName("this_is_the_name"); StringWriter stringWriter = new StringWriter();