Awaitility 3.1.2 is released

9 views
Skip to first unread message

Johan Haleby

unread,
Jul 24, 2018, 7:46:21 AM7/24/18
to await...@googlegroups.com
Awaitility 3.1.2 has been released. Changes are:

* Added "alias" method to awaitility which allows one to set the alias using a more english-like DSL:
    await().with().alias("my alias"). ..
* Added several new Kotlin extension methods. For example you can now do:
    await withPollInterval ONE_HUNDRED_MILLISECONDS ignoreException IllegalArgumentException::class untilAsserted  {
        assertThat(fakeRepository.value).isEqualTo(1)
    }
  or:
     await withAlias "Kotlin Test" ignoreExceptionsInstanceOf
            IllegalArgumentException::class withPollDelay ONE_HUNDRED_MILLISECONDS withPollInterval
            fibonacci().with().offset(1).and().timeUnit(MILLISECONDS) atLeast TWO_HUNDRED_MILLISECONDS atMost
            ONE_MINUTE untilCallTo { fakeRepository.value } matches { it == 1 }

  All extension functions can be imported from the "org.awaitility.kotlin" package (e.g. 'import org.awaitility.kotlin.*')


Enjoy!
Reply all
Reply to author
Forward
0 new messages