Permalink
Browse files

Replace deprecated assert usages

  • Loading branch information...
1 parent 4184e03 commit 8afeefc232f0b5b3e143e96b4471f7e868e1f39a @ilya-g ilya-g committed Oct 5, 2015
Showing with 6 additions and 6 deletions.
  1. +6 −6 NewsEngineTests/src/com/silverkeytech/news_engine_tests/OpmlParserTests.kt
@@ -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("-----------------------------------")

0 comments on commit 8afeefc

Please sign in to comment.