[
https://issues.apache.org/jira/browse/SAMZA-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13940840#comment-13940840
]
Jakob Homan commented on SAMZA-195:
-----------------------------------
bq. instead of checking that the exception class is equal to the expected
class, it might be a bit more flexible to check that the exception class is a
subclass of the expected class.
Whenever I've needed to write a test like this I know exactly which exception
I'm expecting. Catch a subclass would make the test less precise. That being
said, I'm fine either way.
> Elucidate TestUtil:expect
> -------------------------
>
> Key: SAMZA-195
> URL: https://issues.apache.org/jira/browse/SAMZA-195
> Project: Samza
> Issue Type: Improvement
> Reporter: Jakob Homan
>
> The TestUtil::expect method seems a bit odd, as discussed in SAMZA-161.
--
This message was sent by Atlassian JIRA
(v6.2#6252)