Skip to content

Commit

Permalink
Reattribute file
Browse files Browse the repository at this point in the history
  • Loading branch information
NereusWB922 committed Nov 13, 2023
1 parent 58b27cf commit ecd4e5c
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ public void setUp() {

@Test
public void equals_sameCommandResult_returnsTrue() {
CommandResult commandResult2 = createCommandResult("Test", true, false);

assertTrue(commonCommandResult.equals(commonCommandResult));
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author zannloo
package seedu.address.logic.commands;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down Expand Up @@ -217,15 +218,7 @@ public void execute_duplicateDeadline_throwsCommandException() throws InvalidPat

@Test
public void execute_isHelpTrue_returnMessageUsage() throws CommandException, InvalidPathException {
Student alice = TypicalStudents.ALICE;
Group aliceGroup = TypicalGroups.GROUP_ONE;

RelativePath groupPath = new RelativePath(aliceGroup.getId().toString());
RelativePath alicePath = new RelativePath(alice.getId().toString());
AbsolutePath absoluteTargetPath = rootPath.resolve(groupPath).resolve(alicePath);

CreateDeadlineCommand command = new CreateDeadlineCommand(absoluteTargetPath, toBeAdded, Category.NONE);
CommandResult result = command.HELP_MESSAGE.execute(model);
CommandResult result = CreateDeadlineCommand.HELP_MESSAGE.execute(model);

CommandResult expectedResult = new CommandResult(MESSAGE_USAGE);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author zannloo
package seedu.address.logic.commands;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author zannloo
package seedu.address.logic.commands;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down Expand Up @@ -270,15 +271,7 @@ public void execute_childrenAlreadyHaveTask_throwCommandException() throws Comma

@Test
public void execute_isHelpTrue_returnMessageUsage() throws CommandException, InvalidPathException {
Student alice = TypicalStudents.ALICE;
Group aliceGroup = TypicalGroups.GROUP_ONE;

RelativePath groupPath = new RelativePath(aliceGroup.getId().toString());
RelativePath alicePath = new RelativePath(alice.getId().toString());
AbsolutePath absoluteTargetPath = rootPath.resolve(groupPath).resolve(alicePath);

CreateTodoCommand command = new CreateTodoCommand(absoluteTargetPath, toBeAdded, Category.NONE);
CommandResult result = command.HELP_MESSAGE.execute(model);
CommandResult result = CreateTodoCommand.HELP_MESSAGE.execute(model);

CommandResult expectedResult = new CommandResult(MESSAGE_USAGE);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author zannloo
package seedu.address.logic.commands;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ public void execute_invalidDirectory_throwCommandException() {

@Test
public void execute_isHelpTrue_returnMessageUsage() throws CommandException {
EditStudentDescriptor editStudentDescriptor = new EditStudentDescriptor();
EditCommand command = new EditCommand(rootPath, editStudentDescriptor);
CommandResult result = command.HELP_MESSAGE.execute(model);
CommandResult result = EditCommand.HELP_MESSAGE.execute(model);

CommandResult expectedResult = new CommandResult(MESSAGE_USAGE);

Expand Down
1 change: 1 addition & 0 deletions src/test/java/seedu/address/model/ChildOperationTest.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author mingyuanc
package seedu.address.model;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/seedu/address/model/ModelManagerTest.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author mingyuanc
package seedu.address.model;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/seedu/address/model/TaskOperationTest.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@@author mingyuanc
package seedu.address.model;

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

0 comments on commit ecd4e5c

Please sign in to comment.