package seedu.task.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 : Address App\n" +
                "Current log level : INFO\n" +
                "Preference file Location : preferences.json\n" +
                "Local data file location : data/addressbook.xml\n" +
                "TaskList name : MyAddressBook";

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

    @Test
    public void equalsMethod() {
        Config defaultConfig = new Config();
        assertNotNull(defaultConfig);
        assertTrue(defaultConfig.equals(defaultConfig));
    }


}

@@ -464,31 +464,36 @@
  = %22
-App title : Address App
+TaskList name : Task Manager
 %5Cn%22 
@@ -694,28 +694,31 @@
        %22Task
-List
+Manager
  name : MyAd
@@ -719,22 +719,163 @@
 : My
-AddressBook%22;%0A
+TaskManager%22;%0A        System.out.println(%22------%22);%0A        System.out.println(defaultConfigAsString);%0A        System.out.println(new Config().toString());
 %0A   

fix configtest