Skip to content

Commit

Permalink
fix assertContains
Browse files Browse the repository at this point in the history
  • Loading branch information
aSemy committed Sep 3, 2023
1 parent 70430ec commit 0f05850
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,16 @@ class MavenIntegrationTest : AbstractIntegrationTest() {
)
)
}

companion object {
/*
* TODO replace with kotlin.test.assertContains after migrating to Kotlin language version 1.5+
*/
fun assertContains(charSequence: CharSequence, other: CharSequence, ignoreCase: Boolean = false) {
asserter.assertTrue(
{ "Expected the char sequence to contain the substring.\nCharSequence <$charSequence>, substring <$other>, ignoreCase <$ignoreCase>." },
charSequence.contains(other, ignoreCase)
)
}
}
}

0 comments on commit 0f05850

Please sign in to comment.