/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fi.helsinki.cs.okkopa;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author phemmila
 */
public class SettingsTest {
    
    private Settings testSettings;
    
    public SettingsTest() {
    }
    
    @BeforeClass
    public void setUpClass() {
        testSettings = new Settings("/test.xml");
    }
    
    @AfterClass
    public static void tearDownClass() {
        
    }
    
    @Before
    public void setUp() {     
        //before each test
    }
    
    @After
    public void tearDown() {
        //after all the tests
    }

    @Test
    public void testSettingNotNull() {
        assertNotNull("Loading \"test.xml\" caused an exception. Check for correct path or whether the file exists.",testSettings.getSettings());
    }
  
    
    @Test 
    public void testSettingContainsValues() {
       assertTrue("test.xml has no content, should contain at least 1 key value pair.",testSettings.getSettings().size() == 11);
    }


}
@@ -454,32 +454,39 @@
 lass%0A    public 
+static 
 void setUpClass(
@@ -493,58 +493,8 @@
 ) %7B%0A
-        testSettings = new Settings(%22/test.xml%22);%0A
     
@@ -561,17 +561,8 @@
 ) %7B%0A
-        %0A
     
@@ -607,24 +607,24 @@
 Up() %7B     %0A
-
         //be
@@ -634,24 +634,92 @@
 e each test%0A
+        testSettings = new Settings(%22src/test/resources/test.xml%22);%0A
     %7D%0A    %0A 
@@ -1198,8 +1198,9 @@
    %7D%0A%0A%0A%7D
+%0A

Update SettingsTest.java