Skip to content

Commit

Permalink
Merge pull request #32 from AY1920S1-CS2113T-F10-1/master
Browse files Browse the repository at this point in the history
pulling latest changes
  • Loading branch information
namiwa authored Nov 11, 2019
2 parents 1aa1d20 + 15fcb96 commit 95dd53a
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/main/java/planner/ui/cli/PlannerUi.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ public String readInput(InputStream stream) {
for (char c = (char) stream.read();
c != '\n' && c != '\uFFFF';
c = (char) stream.read()) {
if (c != '\r') input.append(c);
if (c != '\r') {
input.append(c);
}
}
if (input.length() == 0) {
return null;
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/planner/credential/user/TaskListsTest.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//@@author LongLeCE

package planner.credential.user;

import org.junit.jupiter.api.DisplayName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertNull;

public class ClearCommandTest extends CommandTestFramework {
public class ClearTest extends CommandTest {

private static final TaskList<Cca> emptyCcaList = new TaskList<>();
private static final TaskList<ModuleTask> emptyModuleList = new TaskList<>();
Expand All @@ -34,7 +34,7 @@ public class ClearCommandTest extends CommandTestFramework {
+ "scheduleCca 1";
private String inputModule = inputCca;

ClearCommandTest() throws ModException {
ClearTest() throws ModException {
super();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import java.io.ByteArrayInputStream;
import java.util.HashMap;

public class CommandTestFramework extends InputTest {
public class CommandTest extends InputTest {

User user;
HashMap<String, ModuleInfoDetailed> modDetail;
Expand All @@ -24,7 +24,7 @@ public class CommandTestFramework extends InputTest {
ModuleCommand command;
Parser parser;

public CommandTestFramework() throws ModException {
public CommandTest() throws ModException {
init();
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/planner/logic/command/SortCcaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;


public class SortCcaTest extends CommandTestFramework {
public class SortCcaTest extends CommandTest {
private static Storage store;
private static ModuleTasksList modTasks;
private static Parser argparser;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/planner/logic/command/SortModuleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

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

public class SortModuleTest extends CommandTestFramework {
public class SortModuleTest extends CommandTest {
private static Storage store;
private static ModuleTasksList modTasks;
private static Parser argparser;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/planner/logic/command/SortTimeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

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

public class SortTimeTest extends CommandTestFramework {
public class SortTimeTest extends CommandTest {
private static Storage store;
private static ModuleTasksList modTasks;
private static Parser argparser;
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/planner/main/PlannerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import planner.logic.command.CommandTestFramework;
import planner.logic.command.CommandTest;
import planner.logic.exceptions.legacy.ModException;

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

public class PlannerTest extends CommandTestFramework {
public class PlannerTest extends CommandTest {

private static final String LINE = "_______________________________";

Expand Down

0 comments on commit 95dd53a

Please sign in to comment.