mmiklavc commented on a change in pull request #1554: METRON-2307: Migrate to
JUnit5
URL: https://github.com/apache/metron/pull/1554#discussion_r348189144
##########
File path:
metron-platform/metron-indexing/metron-indexing-common/src/test/java/org/apache/metron/indexing/dao/metaalert/MetaAlertIntegrationTest.java
##########
@@ -931,9 +910,9 @@ public void shouldThrowExceptionOnMetaAlertUpdate() throws
Exception {
try {
// Verify a meta alert cannot be updated in the meta alert dao
metaDao.update(metaAlert, Optional.empty());
- Assert.fail("Direct meta alert update should throw an exception");
+ fail("Direct meta alert update should throw an exception");
Review comment:
Might be worth using the new idiom for exception testing here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services