Skip to content

Commit

Permalink
Merge pull request nusCS2113-AY1920S1#8 from 9hafidz6/master
Browse files Browse the repository at this point in the history
[AY1920S1-CS2113-T14-2]-9hafidz6-A-CheckStyle
  • Loading branch information
9hafidz6 authored Sep 16, 2019
2 parents 839ffc1 + abede27 commit 12c7715
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'java'
id 'application'
id 'checkstyle'
}

group 'seedu.duke'
Expand All @@ -10,6 +11,10 @@ repositories {
mavenCentral()
}

checkstyle {
toolVersion = '8.23'
}

application {
// Change this to your main class.
mainClassName = "duke/Duke"
Expand Down
7 changes: 6 additions & 1 deletion src/test/java/DukeTest.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import duke.Duke;
import duke.command.AddCommand;
import duke.command.Command;
import duke.command.ExitCommand;
import duke.exception.DukeException;
import duke.parser.Parser;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;
Expand All @@ -12,7 +17,7 @@ public void dummyTest(){
@Test
public void testExitCommand() throws DukeException {
Duke duke= new Duke("data/tasks.txt");
Command c=Parser.parse("bye");
Command c= Parser.parse("bye");
assertTrue(c instanceof ExitCommand);
}
@Test
Expand Down

0 comments on commit 12c7715

Please sign in to comment.