From 1df3ae1dc6401720cc8c220b95d76015affb43ef Mon Sep 17 00:00:00 2001 From: yijiano Date: Tue, 12 Nov 2024 00:31:03 +0800 Subject: [PATCH] Clean post merge --- .../java/seedu/pill/command/SetCostCommandTest.java | 1 - .../seedu/pill/command/TransactionsCommandTest.java | 10 ++++++---- .../java/seedu/pill/command/ViewOrdersCommandTest.java | 2 +- src/test/java/seedu/pill/util/ParserTest.java | 6 ------ .../java/seedu/pill/util/TransactionManagerTest.java | 8 ++------ 5 files changed, 9 insertions(+), 18 deletions(-) diff --git a/src/test/java/seedu/pill/command/SetCostCommandTest.java b/src/test/java/seedu/pill/command/SetCostCommandTest.java index efc0b5f5a6..e04a0dce4f 100644 --- a/src/test/java/seedu/pill/command/SetCostCommandTest.java +++ b/src/test/java/seedu/pill/command/SetCostCommandTest.java @@ -3,7 +3,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; -import seedu.pill.exceptions.ExceptionMessages; import seedu.pill.exceptions.PillException; import seedu.pill.util.ItemMap; import seedu.pill.util.Storage; diff --git a/src/test/java/seedu/pill/command/TransactionsCommandTest.java b/src/test/java/seedu/pill/command/TransactionsCommandTest.java index f058a1f284..d5030b29b1 100644 --- a/src/test/java/seedu/pill/command/TransactionsCommandTest.java +++ b/src/test/java/seedu/pill/command/TransactionsCommandTest.java @@ -4,14 +4,16 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; import seedu.pill.exceptions.PillException; -import seedu.pill.util.*; +import seedu.pill.util.ItemMap; +import seedu.pill.util.Storage; +import seedu.pill.util.Transaction; +import seedu.pill.util.TransactionManager; + import java.io.ByteArrayOutputStream; import java.io.PrintStream; -import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; /** @@ -66,4 +68,4 @@ public void isExit_returnsAlwaysFalse() { public void restoreSystemOut() { System.setOut(standardOut); } -} \ No newline at end of file +} diff --git a/src/test/java/seedu/pill/command/ViewOrdersCommandTest.java b/src/test/java/seedu/pill/command/ViewOrdersCommandTest.java index 8424bd9c61..9c91ba37a1 100644 --- a/src/test/java/seedu/pill/command/ViewOrdersCommandTest.java +++ b/src/test/java/seedu/pill/command/ViewOrdersCommandTest.java @@ -72,4 +72,4 @@ public void isExit_returnsAlwaysFalse() { public void restoreSystemOut() { System.setOut(standardOut); } -} \ No newline at end of file +} diff --git a/src/test/java/seedu/pill/util/ParserTest.java b/src/test/java/seedu/pill/util/ParserTest.java index 74f4afe92b..c68c767bee 100644 --- a/src/test/java/seedu/pill/util/ParserTest.java +++ b/src/test/java/seedu/pill/util/ParserTest.java @@ -3,26 +3,20 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; -import seedu.pill.exceptions.ExceptionMessages; import seedu.pill.exceptions.PillException; import seedu.pill.util.ItemMap; import seedu.pill.util.Storage; import seedu.pill.util.Parser; import seedu.pill.util.TransactionManager; import seedu.pill.util.Ui; -import seedu.pill.util.Order; import seedu.pill.util.Item; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.time.LocalDate; -import java.time.LocalDateTime; import java.util.Optional; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertEquals; public class ParserTest { private ItemMap itemMap; diff --git a/src/test/java/seedu/pill/util/TransactionManagerTest.java b/src/test/java/seedu/pill/util/TransactionManagerTest.java index 4c9f75519d..858749ff7b 100644 --- a/src/test/java/seedu/pill/util/TransactionManagerTest.java +++ b/src/test/java/seedu/pill/util/TransactionManagerTest.java @@ -2,27 +2,23 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import seedu.pill.exceptions.ExceptionMessages; import seedu.pill.exceptions.PillException; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertNotNull; -import java.time.LocalDate; import java.time.LocalDateTime; import java.time.temporal.ChronoUnit; import java.util.List; -import java.util.TreeSet; class TransactionManagerTest { - private TransactionManager transactionManager; - private ItemMap itemMap; private static final String VALID_ITEM_NAME = "Aspirin"; private static final int VALID_QUANTITY = 100; private static final String VALID_NOTES = "Test notes"; + private TransactionManager transactionManager; + private ItemMap itemMap; @BeforeEach void setUp() {