Kluent
Kluent copied to clipboard
Fluent Assertion-Library for Kotlin
I was thinking about adding range specific assertions. First of all current `shouldContain` / `shouldNotContain` may not be efficient as we are using generic inferable implementation with`forEach` under the hood...
``` class StringMaxCharTest { @Test fun `SOme test`() { maxChar("a") shouldEqual 'a' } } fun maxChar(str: String): Char? { val map = mutableMapOf() str.forEach { map[it] = (map[it] ?: 0)...
## Steps to reproduce 1. `./gradlew clean` 1. `./gradlew test` ## Issue Description When running the above commands, the output shows warnings ``` > Task :kluent-common:compileTestKotlinCommon w: Classpath entry points...
Hello, I just wanna ask something. Is it possible to support multi language beside english for this library ? For example like bahasa or spanish or italian ? I hope...
As an alternative syntax to: ```kotlin val theFunction = { myThrowingFunction() } // Expect any exception theFunction shouldThrow AnyException ``` It would be really nice to add function reference syntax...
Kluent is great for its assertions, and mocking features seem secondary to the library's purpose. Additionally, using both Kluent and `mockito-kotlin` is confusing, as it leads to a very long...
Thanks for the quick release of kluent-1.70 which solved my issues with java 11 in one project. Unfortunately, there was more lurking behind the wall, only found in another project:...
I think `shouldNotThrow` could hide a programming error. The following code completes without issues: ``` invoking { throw IllegalArgumentException() } shouldNotThrow CustomException::class ``` I think the `IllegalArgumentException` should be re-thrown...
After a version update, I saw lot of test started to fail, I've tracked down the issue to a compatibility issue between awaitility and kluent, in awaitility ( maybe also...
In a test, I'm using `shouldBeEquivalentTo` to compare two objects from the same class. It works fine when the two objects are equivalent, but when they are not the following...