@@ -0,0 +1,1306 @@
+package seedu.ezdo.model;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0Aimport org.junit.runner.RunWith;%0Aimport org.powermock.api.mockito.PowerMockito;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0Aimport seedu.ezdo.commons.exceptions.IllegalValueException;%0Aimport seedu.ezdo.model.todo.Task;%0Aimport seedu.ezdo.model.todo.UniqueTaskList.DuplicateTaskException;%0Aimport seedu.ezdo.model.util.SampleDataUtil;%0A%0A@RunWith(PowerMockRunner.class)%0A@PrepareForTest(%7BTask.class, SampleDataUtil.class, EzDo.class%7D)%0Apublic class SampleDataUtilTest %7B%0A%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A    @Test%0A    public void getSampleTasks_ive_throwsAssertionError() throws Exception %7B%0A        thrown.expect(AssertionError.class);%0A        PowerMockito.whenNew(Task.class).withAnyArguments().thenThrow(new IllegalValueException(%22ive%22));%0A        SampleDataUtil.getSampleTasks();%0A    %7D%0A%0A    @Test%0A    public void getSampleEzDo_duplicateTask_throwsAssertionError() throws Exception %7B%0A        thrown.expect(AssertionError.class);%0A        PowerMockito.whenNew(EzDo.class).withAnyArguments().thenThrow(new DuplicateTaskException());%0A        SampleDataUtil.getSampleEzDo();%0A    %7D%0A%0A%7D%0A

Add SampleDataUtilTest