Skip to content

Releases: robfletcher/strikt

Distant Princess

01 Dec 23:30
Compare
Choose a tag to compare
  • Adds count() and count(predicate) mappings for Iterable subjects.
  • Additional support for File subjects. See #230
    • mapping property Assertion.Builder<File>.parentFile: Builder<File>
    • mapping property Assertion.Builder<File>.lastModified: Long
    • mapping property Assertion.Builder<File>.length: Long
    • mapping property Assertion.Builder<File>.childFiles: Builder<List<File>>
    • mapping function Assertion.Builder<File>.childFile(name): Builder<File>
    • assertion Assertion.Builder<File>.exists()
    • assertion Assertion.Builder<File>.notExists()
    • assertion Assertion.Builder<File>.isRegularFile()
    • assertion Assertion.Builder<File>.isNotRegularFile()
    • assertion Assertion.Builder<File>.isDirectory()
    • assertion Assertion.Builder<File>.isNotDirectory()
    • assertion Assertion.Builder<File>.isReadable()
    • assertion Assertion.Builder<File>.isNotReadable()
    • assertion Assertion.Builder<File>.isWritable()
    • assertion Assertion.Builder<File>.isNotWritable()
    • assertion Assertion.Builder<File>.isExecutable()
    • assertion Assertion.Builder<File>.isNotExecutable()

Invincible Sadness

13 Sep 18:46
Compare
Choose a tag to compare
  • Fixes compilation using Android due to use of private interface methods. See #229
  • Assertion chains that use not will now report actual values if they fail. See #222

Hungry Spear

18 Aug 21:33
Compare
Choose a tag to compare

Kotlin 1.4 compatibility

Quicksilver Silhouette

11 May 23:19
Compare
Choose a tag to compare

New features

  • Assertion.Builder<Iterable<E>>withFirst
  • Assertion.Builder<Iterable<E>>withFirst(predicate)
  • Assertion.Builder<Iterable<E>>withLast
  • Assertion.Builder<Iterable<E>>withElementAt
  • Assertion.Builder<Map<K, V>>withValue
  • Assertion.Builder<CapturingSlot<T>>withCaptured in strikt-mockk.

Ferocious Daughter

04 May 18:48
Compare
Choose a tag to compare

New features

  • succeeded and failed deprecated in favor of isSuccess and isFailure.
  • added Assertion.Builder<Enum<T>>.isOneOf assertion.

Fixes

  • single now displays the number of elements found if it fails. See #210
  • Improved description of task mapping. See #218

Blighted Depths

27 Mar 17:41
Compare
Choose a tag to compare

Added strikt-mockk module

Auspicious Misery

26 Feb 01:41
Compare
Choose a tag to compare
  • New methods:
    • Assertion.Builder<Iterable<T>>.elementAt
    • Assertion.Builder<Iterable<T>>.one
    • Assertion.Builder<ArrayNode>.findValuesAsText
    • Assertion.Builder<ArrayNode>.textValues

Celestial Depths

13 Feb 22:15
Compare
Choose a tag to compare

Fixes filepeek on Windows

Weeping Spire

10 Feb 18:49
Compare
Choose a tag to compare
  • Fixes missing transitive dependency on com.christophsturm:filepeek

Auspicious Misery

09 Feb 16:34
Compare
Choose a tag to compare
  • Fixes some errors in complex nested block scenarios. See #203 and #204