[ 
https://issues.apache.org/jira/browse/SAMZA-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13940420#comment-13940420
 ] 

Martin Kleppmann commented on SAMZA-195:
----------------------------------------

Agree, your implementation makes more sense. One potential tweak: 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.

Alternatively, we could add a dependency on 
[ScalaTest|http://www.scalatest.org/], which adds some nice test helpers like 
this, to extend JUnit's very limited set of assertions.

> 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)

Reply via email to