From fe09bc5eb997ad76c05a6b49b7d1b58300335af7 Mon Sep 17 00:00:00 2001 From: 9hafidz6 <9hafidz6@gmail.com> Date: Mon, 16 Sep 2019 19:37:28 +0800 Subject: [PATCH 1/3] added dummy text file --- test_docs.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 test_docs.txt diff --git a/test_docs.txt b/test_docs.txt new file mode 100644 index 00000000..5b37e692 --- /dev/null +++ b/test_docs.txt @@ -0,0 +1 @@ +this is a test \ No newline at end of file From fc12742ac6219335a4fda7160e788de6fc9de708 Mon Sep 17 00:00:00 2001 From: 9hafidz6 <9hafidz6@gmail.com> Date: Mon, 16 Sep 2019 19:48:41 +0800 Subject: [PATCH 2/3] added checkstyle --- build.gradle | 5 +++++ src/test/java/DukeTest.java | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 683e4870..dbb29372 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'application' + id 'checkstyle' } group 'seedu.duke' @@ -10,6 +11,10 @@ repositories { mavenCentral() } +checkstyle { + toolVersion = '8.23' +} + application { // Change this to your main class. mainClassName = "duke/Duke" diff --git a/src/test/java/DukeTest.java b/src/test/java/DukeTest.java index 99e0e46a..83d4bada 100644 --- a/src/test/java/DukeTest.java +++ b/src/test/java/DukeTest.java @@ -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.*; @@ -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 From abede276d86dd46697bee77347f3c9b65e7118b1 Mon Sep 17 00:00:00 2001 From: 9hafidz6 <9hafidz6@gmail.com> Date: Mon, 16 Sep 2019 19:51:11 +0800 Subject: [PATCH 3/3] removed dummy text --- test_docs.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 test_docs.txt diff --git a/test_docs.txt b/test_docs.txt deleted file mode 100644 index 5b37e692..00000000 --- a/test_docs.txt +++ /dev/null @@ -1 +0,0 @@ -this is a test \ No newline at end of file