package seedu.tasklist.commons.core;

import static org.junit.Assert.assertEquals;
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));
    }


}

@@ -76,16 +76,60 @@
 Equals;%0A
+import static org.junit.Assert.assertFalse;%0A
 import s
@@ -1026,14 +1026,422 @@
 ));%0A    
-%7D
+    %0A        Config config = new Config();%0A        assertFalse(config.equals(%22MyTaskList%22));%0A    %7D%0A    %0A    //@@author A0141993X%0A    @Test%0A    public void hashCodeMethod() %7B%0A        Config defaultConfig = new Config();%0A        assertEquals(defaultConfig.hashCode(), defaultConfig.hashCode());%0A%0A        Config config = new Config();%0A        assertEquals(config.hashCode(), defaultConfig.hashCode());%0A    %7D%0A    
 %0A%0A%0A%7D%0A

Add test to improve code coverage