@@ -0,0 +1,1485 @@
+package test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.Date;%0A%0Aimport model.DeadlineTask;%0Aimport model.FixedTask;%0Aimport model.FloatingTask;%0Aimport model.TaskList;%0A%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport controller.Storage;%0A%0Apublic class StorageTest %7B%0A%09@BeforeClass%0A%09public static void setUpBeforeClass() throws Exception %7B%0A%09%09%0A%09%7D%0A%0A%09@Test%0A%09public void testEmpty() %7B%0A%09%09Storage store = new Storage(%22test.xml%22);%0A%09%09TaskList tasks = new TaskList();%0A%09%09store.save(tasks,%22test.xml%22);%0A%09%09TaskList listFromFile = store.load();%0A%09%09assertEquals(0, listFromFile.getNumberOfTasks());%0A%09%7D%0A%09%0A%09@Test%0A%09public void testMultipleTypesTask() %7B%0A%09%09Storage store = new Storage(%22test.xml%22);%0A%09%09TaskList tasks = new TaskList();%0A%09%09for (int i=0;i%3C100;i++) %7B%0A%09%09%09tasks.addToList(new FloatingTask(%22test%22+i));%0A%09%09%7D%0A%09%09store.save(tasks,%22test.xml%22);%0A%09%09%0A%09%09TaskList listFromFile = store.load();%0A%09%09assertEquals(100, listFromFile.getNumberOfTasks());%0A%09%09store.close();%0A%09%09%0A%09%09store = new Storage(%22test.xml%22);%0A%09%09for (int i=0;i%3C50;i++) %7B%0A%09%09%09tasks.addToList(new FixedTask(%22test%22+i, new Date(), new Date()));%0A%09%09%7D%0A%09%09store.save(tasks,%22test.xml%22);%0A%09%09listFromFile = store.load();%0A%09%09assertEquals(150, listFromFile.getNumberOfTasks());%0A%09%09%0A%09%09store.close();%0A%09%09%0A%09%09store = new Storage(%22test.xml%22);%0A%09%09for (int i=0;i%3C60;i++) %7B%0A%09%09%09tasks.addToList(new DeadlineTask(%22test%22+i, new Date()));%0A%09%09%7D%0A%09%09store.save(tasks,%22test.xml%22);%0A%09%09listFromFile = store.load();%0A%09%09assertEquals(210, listFromFile.getNumberOfTasks());%0A%09%09%0A%09%7D%0A%0A%7D%0A

Add a Unit test for Storage.