Skip to content

Commit

Permalink
Fix checkstyle error
Browse files Browse the repository at this point in the history
  • Loading branch information
Seris370 committed Nov 4, 2019
1 parent cb34d39 commit e0ec7b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public static void assertProcessedPlanListOfLength(LogicManager logicManager, in
assertEquals(length, logicManager.getProcessedPlanList().size());
}

/**
* Checks whether the only returned plan has matching plan name.
* @param logicManager logic component
* @param fullName plan name
*/
public static void assertPlanName(LogicManager logicManager, String fullName) {
assertEquals(1, logicManager.getProcessedPlanList().size());
assertEquals(fullName, logicManager.getProcessedPlanList().get(0).getPlanName().fullName);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
package seedu.algobase.integration;

import static seedu.algobase.integration.IntegrationTestUtil.assertPlanName;
import static seedu.algobase.integration.IntegrationTestUtil.assertProcessedPlanListOfLength;
import static seedu.algobase.integration.IntegrationTestUtil.getTempFilePath;

import java.nio.file.Path;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import seedu.algobase.logic.LogicManager;
import seedu.algobase.logic.commands.exceptions.CommandException;
import seedu.algobase.logic.parser.exceptions.ParseException;
Expand All @@ -14,12 +21,6 @@
import seedu.algobase.storage.JsonUserPrefsStorage;
import seedu.algobase.storage.StorageManager;

import java.nio.file.Path;

import static seedu.algobase.integration.IntegrationTestUtil.assertPlanName;
import static seedu.algobase.integration.IntegrationTestUtil.assertProcessedPlanListOfLength;
import static seedu.algobase.integration.IntegrationTestUtil.getTempFilePath;

public class PlanCommandsIntegrationTest {

// --- COPY BELOW FOR INTEGRATION TESTS ----------------------------------------------------------------
Expand Down

0 comments on commit e0ec7b8

Please sign in to comment.