Skip to content

Commit

Permalink
Modify config for proper Gradle usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardwan committed Sep 5, 2021
1 parent 62293f6 commit 9befeef
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test {
}

application {
mainClassName = "seedu.duke.Duke"
mainClassName = "duke.Launcher"
}

shadowJar {
Expand Down
Empty file removed data/duke.txt
Empty file.
6 changes: 5 additions & 1 deletion src/main/java/duke/Command/AddCommand.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package duke.Command;

import duke.*;
import duke.DukeException;
import duke.Storage;
import duke.Task;
import duke.TaskList;
import duke.Ui;

public class AddCommand extends Command {
private String type;
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/duke/Command/DeleteCommand.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package duke.Command;

import duke.*;
import duke.DukeException;
import duke.Storage;
import duke.Task;
import duke.TaskList;
import duke.Ui;

public class DeleteCommand extends Command {
private int index;
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/duke/Command/DoneCommand.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package duke.Command;

import duke.*;
import duke.DukeException;
import duke.Storage;
import duke.Task;
import duke.TaskList;
import duke.Ui;

public class DoneCommand extends Command {

Expand Down
6 changes: 5 additions & 1 deletion src/main/java/duke/Command/FindCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import java.util.ArrayList;

import duke.*;
import duke.DukeException;
import duke.Storage;
import duke.Task;
import duke.TaskList;
import duke.Ui;


public class FindCommand extends Command {
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/duke/MainWindow.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package duke;

import duke.DialogBox;
import duke.Duke;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.ScrollPane;
Expand Down Expand Up @@ -50,4 +48,4 @@ private void handleUserInput() {
);
userInput.clear();
}
}
}
8 changes: 7 additions & 1 deletion src/main/java/duke/Parser.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
package duke;

import duke.Command.*;
import duke.Command.AddCommand;
import duke.Command.Command;
import duke.Command.DeleteCommand;
import duke.Command.DoneCommand;
import duke.Command.ExitCommand;
import duke.Command.FindCommand;
import duke.Command.ListCommand;


public class Parser {
Expand Down
11 changes: 7 additions & 4 deletions src/test/java/dukeTest/TaskListTest.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
package dukeTest;

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

import java.util.ArrayList;

import org.junit.jupiter.api.Test;

import duke.DukeException;
import duke.Task;
import duke.TaskList;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;

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

public class TaskListTest {
@Test
Expand All @@ -20,7 +23,7 @@ public void addTaskTest() throws DukeException {
}

@Test
public void removeTaskTest() throws DukeException{
public void removeTaskTest() throws DukeException {
Task task = new Task.Deadline("test", false, "2021-12-12");
ArrayList<Task> temp = new ArrayList<>();
temp.add(task);
Expand Down
8 changes: 6 additions & 2 deletions src/test/java/dukeTest/TaskTest.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
package dukeTest;

import duke.Task;
import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import duke.Task;




public class TaskTest {
@Test
Expand Down

0 comments on commit 9befeef

Please sign in to comment.