Skip to content

Commit

Permalink
Replace deprecated assert usages
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-g committed Oct 5, 2015
1 parent 4184e03 commit 8afeefc
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public class OpmlParserTests {

println("Error message : ${res.exception?.getMessage()}")

assert(res.isTrue(), "transform operation must be true not ${res.exception?.getMessage()}")
assert(res.isTrue()) { "transform operation must be true not ${res.exception?.getMessage()}" }
val opml = res.value!!
assert(!opml.head!!.title!!.isEmpty(), "Must have title")
assert(!opml.head!!.dateModified!!.isEmpty(), "Must have date modified")
assert(!opml.head!!.ownerName!!.isEmpty(), "Must have owner name")
assert(!opml.head!!.ownerEmail!!.isEmpty(), "Must have owner email")
assert(!opml.body!!.outline!!.get(0).text!!.isEmpty(), "Must have text ")
assert(!opml.head!!.title!!.isEmpty()) { "Must have title" }
assert(!opml.head!!.dateModified!!.isEmpty()) { "Must have date modified" }
assert(!opml.head!!.ownerName!!.isEmpty()) { "Must have owner name" }
assert(!opml.head!!.ownerEmail!!.isEmpty()) { "Must have owner email" }
assert(!opml.body!!.outline!!.get(0).text!!.isEmpty()) { "Must have text " }

println("-----------------------------------")

Expand Down

0 comments on commit 8afeefc

Please sign in to comment.