forked from nus-cs2113-AY2021S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request nus-cs2113-AY2021S1#57 from weisiong24/Feature2-Junit
Feature2 junit
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package seedu.duke.command; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import seedu.duke.task.Event; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
class AddCommandTest { | ||
|
||
String name = "CS2040C"; | ||
String location = "LT23"; | ||
String timeStart = "1600"; | ||
String timeEnd = "1900"; | ||
|
||
@Test | ||
void testAddCommand() { | ||
Event e = new Event(name, location,timeStart,timeEnd); | ||
|
||
assertEquals("CS2040C LT23 1600-1900",e.toString()); | ||
} | ||
|
||
} |