Skip to content

Commit

Permalink
Add JUnit Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tonishka committed Jan 28, 2022
1 parent 71f49eb commit 91ebb19
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/java/yoda/DeadlineTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package yoda;

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

public class DeadlineTest {
@Test
public void dummyTest() {
Deadline deadline = new Deadline("LSM1301 Lab Report", "2022-02-13");
assertEquals("[D][ ] LSM1301 Lab Report (Feb 13 2022)", deadline.toString());
}
}
5 changes: 5 additions & 0 deletions test/java/yoda/EventTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package yoda;

public class EventTest {

}
2 changes: 2 additions & 0 deletions test/java/yoda/ParserTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package yoda;public class ParserTest {
}
2 changes: 2 additions & 0 deletions test/java/yoda/ToDoTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package yoda;public class ToDoTest {
}

0 comments on commit 91ebb19

Please sign in to comment.