2020-03-09から1日間の記事一覧
なかみ /** * @return a matcher checking the type of an Exception and its message (as a regexp) */ def throwA[E <: Throwable](message: String = ".*")(implicit m: ClassTag[E]): Matcher[Any] = { throwA(m).like { case e: Throwable => createExpectable(e.getMessage.notNull).applyMatcher(BeMatching.withPart(m…</:>