Fixed failing tests

This commit is contained in:
Adam Ding
2020-12-04 12:08:19 -05:00
parent 21277e1f76
commit 6ed94ea4e5
12 changed files with 74 additions and 26 deletions

View File

@@ -9,7 +9,7 @@ public class TestPictureGetter {
@Test
public void testPictureGetterValid() {
testPictureGetter(false);
testPictureGetter(true);
}
@Test
@@ -35,7 +35,7 @@ public class TestPictureGetter {
try {
Object rawIDReturn = pictureGetter.conductAction(body, TestInputUtils.addQueryParams(ignore), "cognitoID");
assert (rawIDReturn != null);
} catch (SQLException throwables) {
} catch (SQLException | IllegalArgumentException throwables) {
assert shouldThrow;
throwables.printStackTrace();
}