Skip to content

Commit

Permalink
Clean post merge
Browse files Browse the repository at this point in the history
  • Loading branch information
yijiano committed Nov 11, 2024
1 parent 186cfe9 commit 1df3ae1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/test/java/seedu/pill/command/SetCostCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 6 additions & 4 deletions src/test/java/seedu/pill/command/TransactionsCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -66,4 +68,4 @@ public void isExit_returnsAlwaysFalse() {
public void restoreSystemOut() {
System.setOut(standardOut);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ public void isExit_returnsAlwaysFalse() {
public void restoreSystemOut() {
System.setOut(standardOut);
}
}
}
6 changes: 0 additions & 6 deletions src/test/java/seedu/pill/util/ParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 2 additions & 6 deletions src/test/java/seedu/pill/util/TransactionManagerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1df3ae1

Please sign in to comment.