wasyl
03/17/2021, 2:35 PMexpected:<com.example.MyException> but was:<com.example.MyException>
Expected :com.example.MyException
Actual :com.example.MyException
😕sam
03/17/2021, 2:37 PMwasyl
03/17/2021, 2:39 PMshouldHaveMessage
accepts String
and not String
so exception shouldHaveMessage other.message
doesn’t work 😄sam
03/17/2021, 2:39 PMsam
03/17/2021, 2:40 PMwasyl
03/17/2021, 2:40 PMAshish Kumar Joy
03/17/2021, 2:41 PMsam
03/17/2021, 2:41 PMshouldHaveExactException
(or something with a better name)sam
03/17/2021, 2:42 PMsam
03/17/2021, 2:43 PMsam
03/17/2021, 2:43 PMIOException("foo") shouldBe NumberFormatException("foo")
should be falseAshish Kumar Joy
03/17/2021, 2:45 PMAshish Kumar Joy
03/17/2021, 2:45 PMwasyl
03/17/2021, 2:46 PMwasyl
03/17/2021, 2:46 PMshouldHaveExactException
seems like a good addition though, if someone does want to verify causes toosam
03/17/2021, 2:49 PM