Skip to content

Commit

Permalink
Fix coding style violations in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danadi7 committed Sep 6, 2020
1 parent 740a6f4 commit 61cffff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/test/java/duke/logic/CommandParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

import static org.junit.jupiter.api.Assertions.assertTrue;

import org.junit.jupiter.api.Test;

import duke.exceptions.DukeException;
import duke.logic.commands.AddCommand;
import duke.logic.commands.Command;
import duke.logic.commands.DeleteCommand;
import duke.logic.commands.DoneCommand;
import duke.logic.commands.ExitCommand;
import duke.logic.commands.ListCommand;
import org.junit.jupiter.api.Test;

public class CommandParserTest {

Expand Down
5 changes: 3 additions & 2 deletions src/test/java/duke/model/TaskManagerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@

import java.time.LocalDate;

import org.junit.jupiter.api.Test;

import duke.exceptions.DukeException;
import duke.model.task.Deadline;
import duke.model.task.Event;
import duke.model.task.ToDo;
import org.junit.jupiter.api.Test;

public class TaskManagerTest {
private TaskManager tm = new TaskManager();
Expand Down Expand Up @@ -51,7 +52,7 @@ public void markTaskDone_validIndex() throws DukeException {
}

@Test
public void markTaskDone_invalidIndex_exceptionThrown(){
public void markTaskDone_invalidIndex_exceptionThrown() {
assertEquals(0, tm.getTaskList().size());
ToDo todo = new ToDo("Test");
tm.addTask(todo);
Expand Down

0 comments on commit 61cffff

Please sign in to comment.