Skip to content

Commit

Permalink
fixed interim test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
sammdu committed Dec 7, 2021
1 parent b5efbab commit d812bd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TableCarsTest {
void testGetAllCars() {
try {// Create new table for testUserId. setUpEach() ensures table doesn't already exist.
TableCars table = new TableCars(dbName);
List<Map<String, Object>> carMapsList = table.getAllCars("");
List<Map<String, Object>> carMapsList = table.getAllCars();

EntCar car1 = new EntCar();
car1.loadFromMap(new HashMap<>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ void removeUserByID() {
@Test
void userExists() {
}

@BeforeEach
public void setUpEach() {
try {
Expand All @@ -53,7 +54,9 @@ public void setUpEach() {
public void tearDownAll() {
try {
tableUsers = new TableUsers(dbName);
tableUsers.removeUserByID(testUserId);
if (tableUsers.checkUserExists(testUserId)) {
tableUsers.removeUserByID(testUserId);
}
} catch (SQLException | ClassNotFoundException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit d812bd2

Please sign in to comment.