package seedu.tasklist.commons.core;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

public class ConfigTest {
    @Rule
    public ExpectedException thrown = ExpectedException.none();

    @Test
    public void toString_defaultObject_stringReturned() {
        String defaultConfigAsString = "App title : FlexiTask\n" +
                "Current log level : INFO\n" +
                "Preference file Location : preferences.json\n" +
                "Local data file location : data/tasklist.xml\n" +
                "TaskList name : MyTaskList";

        assertEquals(defaultConfigAsString, new Config().toString());
    }

    @Test
    public void equalsMethod() {
        Config defaultConfig = new Config();
        assertNotNull(defaultConfig);
        assertTrue(defaultConfig.equals(defaultConfig));
        
        Config config = new Config();
        assertFalse(config.equals("MyTaskList"));
    }
    
    //@@author A0141993X
    @Test
    public void hashCodeMethod() {
        Config defaultConfig = new Config();
        assertEquals(defaultConfig.hashCode(), defaultConfig.hashCode());

        Config config = new Config();
        assertEquals(config.hashCode(), defaultConfig.hashCode());
    }
    


}

@@ -838,16 +838,40 @@
 ;%0A    %7D%0A
+    //@@author A0141993X
 %0A    @Te
@@ -1046,24 +1046,16 @@
 nfig));%0A
-        
 %0A       
@@ -1123,59 +1123,30 @@
 als(
-%22MyTaskList%22));%0A    %7D%0A    %0A    //@@author A0141993X
+new Object()));%0A    %7D%0A
 %0A   
@@ -1236,83 +1236,8 @@
 ();%0A
-        assertEquals(defaultConfig.hashCode(), defaultConfig.hashCode());%0A%0A
     
@@ -1347,13 +1347,6 @@
   %7D%0A
-    %0A%0A%0A
 %7D%0A

Improve code coverage in ConfigTest.java