Rename some exceptions to ignored since we don't care about them
This commit is contained in:
+3
-3
@@ -45,17 +45,17 @@ public class HLSControllerTestCase extends TestCase {
|
|||||||
try {
|
try {
|
||||||
controller.parseBitRate("asdfl");
|
controller.parseBitRate("asdfl");
|
||||||
fail();
|
fail();
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException ignored) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
controller.parseBitRate("1000@300");
|
controller.parseBitRate("1000@300");
|
||||||
fail();
|
fail();
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException ignored) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
controller.parseBitRate("1000@300x400ZZ");
|
controller.parseBitRate("1000@300x400ZZ");
|
||||||
fail();
|
fail();
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ public class UserDaoTestCase extends DaoTestCaseBean2 {
|
|||||||
try {
|
try {
|
||||||
userDao.updateUserSettings(new UserSettings("sindre"));
|
userDao.updateUserSettings(new UserSettings("sindre"));
|
||||||
fail("Expected DataIntegrityViolationException.");
|
fail("Expected DataIntegrityViolationException.");
|
||||||
} catch (DataIntegrityViolationException x) {
|
} catch (DataIntegrityViolationException ignored) {
|
||||||
}
|
}
|
||||||
|
|
||||||
userDao.createUser(new User("sindre", "secret", null));
|
userDao.createUser(new User("sindre", "secret", null));
|
||||||
|
|||||||
Reference in New Issue
Block a user