- Add assertions for sequences | PR | thanks to @jcornaz
- Add
shouldHaveSingleItem
assertions for various arrays | PR | thanks to @ChristianIvicevic - Add
shouldContainAny
with lambda predicates | PR | thanks to @javatarz - Various gradle fixes | PR | thanks to @javatarz
- Add
shouldBeNear
forBigDecimal
| Issue | PR | thanks to @ChristianIvicevic
- Support asserting suspend function | Issue | PR | thanks to @ychescale9
- Add predicate matchers for collections (
shouldMatchAtLeastOneOf
andshouldMatchAllWith
) | PR | thanks to @sheix
- Add
shouldHaveSize
andshouldHaveSingleItem
to collections | Issue
- Add
shouldBeNear
for Float and Double | PR | thanks to @wangjuechen
- Provide a wrapper function for asserting exceptions | Issue | PR | thanks to @rubengees
- Add backtick-assertions for
should contain some
| PR | thanks to @IvanAtanasov89
- Fix
shouldNotThrow
| Issue | thanks to @svenjacobs
- Implement kotlin
contracts
where possible | PR | thanks to @jcornaz - Allow to call
isInstanceOf
and equivalent assertions on nullable types | PR | thanks to @jcornaz
- Update Kotlin to 1.3
- Update
mockito-kotlin
to 2.0.0 | PR | thanks to @floralvikings
- Use jvmTarget
1.6
for Android builds
- Implement
shouldContainSame
| PR | thanks to @fabriciorissetto
- Provide
shouldBeDigit
andshouldNotBeDigit
| Issue | thanks to @AndreasVolkmann | PR - Implement
shouldHaveTheSameClassAs
andshouldNotHaveTheSameClassAs
| Issue | thanks to @igorwojda | PR - Add checked exceptions to
itThrows
| Issue | thanks to @thetric | PR - Restructure project into platform modules to prepare for 2.0 | PR
- Create more overloads for Collections | Issue | PR
- Return correct subtype of
CharSequence
assertions | Issue | PR | thanks to @AndreasVolkmann
- Add
shouldContainAll
forCharSequence
| Issue | PR | thanks to @AndreasVolkmann
- Allow chaining of assertions | Issue | PR
- Return non-null instance when using
shouldNotBeNull
| Issue | thanks to @goreRatzete - Add a more descriptive failure message for
shouldBeTrue
andshouldBeFalse
| Issue | thanks to @damelines - Add a more descriptive failure message for not null | Issue | thanks to @kamilchm
- Add missing backtick verifier | Issue | thanks to @athkalia
- Kluent now uses fixed dependency version
- More overloads for collection assertions | Issue | PR | Issue by @goreRatzete
- Update to Kotlin 1.2 | Issue
itAnswers
should allow original Mockito Answer types | Issue | PR | thanks to @jpopadak- Support lambda logic assertion | Issue | PR | Issue by @goreRatzete
- Allow should(Not)Throw to on functions returning nullables | Issue | PR | thanks to @gregwoodfill
- Update mockito-kotlin to kt1.1 | Issue
- Starting with this version, Kluent is now available for Android! Thanks to @eburke for making this possible! | PR | thanks to @eburke
- Fix order of arguments to assertArrayEquals() calls | PR | thanks to @cketti
- Deprecate
shouldThrowTheException
forshouldThrow
| PR | thanks to @goreRatzete - Update
mockito-kotlin
to 1.5.0
- Fix wrong assertion in
shouldNotBeGreaterThan
| Issue | PR | thanks to @goreRatzete and @guenhter
- Add assertions for
java.io.File
| Issue | PR | thanks to @goreRatzete
- Verify that a method was not called | PR | thanks to @miszmaniac
- Support primitive Arrays | Issue | thanks to @Tapchicoma
- Use
Throwable
instead ofException
as base type for asserts onException
s | Issue | PR | thanks to @westonal
- ExceptionResult is now Typed and withCause and withMessage are now fluent | PR | thanks to @vjames19
- Update Kotlin to 1.1.1 | PR | thanks to @Egorand
- Update Gradle to 3.4.1 | PR | thanks to @Egorand
- Fix compiler warnings in tests | PR | thanks to @Egorand
- Update JUnit and Mockito | Issue | thanks to @Jeevuz)
- Fix reversed message in ShouldNotThrow | Issue | PR | thanks to @goreRatzete
- Use mockito-kotlin for mocking | Issue | PR | thanks to @fishb6nes
- Add Assertions for LocalDateTime, LocalTime, LocalDate | PR | Documentation
- Update Kotlin to 1.1.0
- Correct assertion message for
Collection.shouldBeEmpty
| Issue
- Rework failure messages of shouldNotContain assertions | Issue
- Extract assertions into different files
- Add withCause for Exception-Assertions | Issue | PR | thanks to @okkero
- Add common non infix assertions | Issue | PR
-
Introduce numerical operations | Issue | PR
shouldBeGreaterOrEqualTo
shouldBeGreaterThan
shouldBeLessOrEqualTo
shouldBeLessThan
shouldBePositive
shouldBeNegative
shouldBeInRange
-
Provide methods to check if an object is a given instance | PR | thanks to @GAumala
shouldBeInstanceOf
shouldNotBeInstanceOf
-
Provide methods for common String operations | Issue | PR | thanks to @goreRatzete
shouldStartWith
shouldNotStartWith
shouldEndWith
shouldNotEndWith
shouldContain
shouldNotContain
shouldMatch
shouldNotMatch
-
Provide methods to test maps | Issue | PR | thanks to @goreRatzete
shouldHaveKey
shouldNotHaveKey
shouldHaveValue
shouldNotHaveValue
shouldContain (pair)
shouldNotContain (pair)