Skip to content

Commit

Permalink
Fixes issue #43 - Fix code smells (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Mar 25, 2023
1 parent 969c7e0 commit cb69c87
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/test/java/com/manorrock/parakeet/YAMLWriterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> map = new HashMap<>();
ArrayList<String> list = new ArrayList<>();
list.add("a");
Expand All @@ -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<String, Object> map = new LinkedHashMap<>();
map.put("value1", true);
map.put("value2", false);
Expand All @@ -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<String> list = new ArrayList<>();
list.add("a");
StringWriter stringWriter = new StringWriter();
Expand All @@ -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<String> list = new ArrayList<>();
list.add("a");
list.add("b");
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit cb69c87

Please sign in to comment.