Skip navigation links
A B C D E F G H I J K L M N P R S T V 

A

all($receiver, message, body) - Static method in class assertk.AssertKt
All assertions in the given lambda are run.
AnyJVMKt - Class in assertk.assertions
 
AnyKt - Class in assertk.assertions
 
arrayContains($receiver, element) - Static method in class assertk.assertions.ArrayKt
Asserts the array contains the expected element, using in.
arrayContainsAll($receiver, elements) - Static method in class assertk.assertions.ArrayKt
Asserts the array contains all the expected elements, in any order. The array may also contain additional elements.
arrayContainsExactly($receiver, elements) - Static method in class assertk.assertions.ArrayKt
Asserts the array contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
arrayDoesNotContain($receiver, element) - Static method in class assertk.assertions.ArrayKt
Asserts the array does not contain the expected element, using !in.
arrayEach($receiver, f) - Static method in class assertk.assertions.ArrayKt
Asserts on each item in the array. The given lambda will be run for each item.
arrayHasSameSizeAs($receiver, other) - Static method in class assertk.assertions.ArrayKt
Asserts the array has the same size as the expected array.
arrayHasSize($receiver, size) - Static method in class assertk.assertions.ArrayKt
Asserts the array has the expected size.
arrayIsEmpty($receiver) - Static method in class assertk.assertions.ArrayKt
Asserts the array is empty.
arrayIsNotEmpty($receiver) - Static method in class assertk.assertions.ArrayKt
Asserts the array is not empty.
arrayIsNullOrEmpty($receiver) - Static method in class assertk.assertions.ArrayKt
Asserts the array is null or empty.
ArrayKt - Class in assertk.assertions
 
Assert<T> - Class in assertk
An assertion. Holds an actual value to assertion on and an optional name.
assert(actual, name) - Method in class assertk.Assert
Deprecated. 
assert(actual, name) - Static method in class assertk.AssertKt
Deprecated. 
assert(f) - Static method in class assertk.AssertKt
Deprecated. 
assertAll(f) - Static method in class assertk.AssertKt
Runs all assertions in the given lambda and reports any failures.
AssertBlock<T> - Class in assertk
An assertion on a block of code. Can assert that it either throws and error or returns a value.
assertk - package assertk
 
assertk.assertions - package assertk.assertions
 
assertk.assertions.support - package assertk.assertions.support
 
AssertkDsl - Interface in assertk
Marks the assertion DSL.
AssertKt - Class in assertk
 
assertThat(actual, name) - Method in class assertk.Assert
Asserts on the given value with an optional name.
assertThat(actual, name) - Static method in class assertk.AssertKt
Asserts on the given value with an optional name.
assertThat(getter, name) - Static method in class assertk.AssertKt
Asserts on the given property reference using its name, if no explicit name is specified. This method should be preferred in cases, where property references can be used, as it uses the property's name for the assertion automatically. The name may optionally be overridden, if needed.
assertThat(f) - Static method in class assertk.AssertKt
Asserts on the given block. You can test that it returns a value or throws an exception.
assertThat(actual, name) - Method in class assertk.FailingAssert
Asserts on the given value with an optional name.
assertThat(actual, name) - Method in class assertk.ValueAssert
Asserts on the given value with an optional name.
atLeast($receiver, times, f) - Static method in class assertk.assertions.IterableKt
Asserts on each item in the iterable, passing if at least times items pass. The given lambda will be run for each item.
atMost($receiver, times, f) - Static method in class assertk.assertions.IterableKt
Asserts on each item in the iterable, passing if at most times items pass. The given lambda will be run for each item.

B

BooleanKt - Class in assertk.assertions
 
byteArrayContains($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray contains the expected element, using in.
byteArrayContainsAll($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray contains all the expected elements, in any order. The array may also contain additional elements.
byteArrayContainsExactly($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
byteArrayDoesNotContain($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray does not contain the expected element, using !in.
byteArrayEach($receiver, f) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts on each item in the ByteArray. The given lambda will be run for each item.
byteArrayHasSameSizeAs($receiver, other) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray has the same size as the expected array.
byteArrayHasSize($receiver, size) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray has the expected size.
byteArrayIndex($receiver, index) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert that assertion on the value at the given index in the array.
byteArrayIndexOld($receiver, index, f) - Static method in class assertk.assertions.PrimativeArrayKt
Deprecated. 
byteArrayIsEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray is empty.
byteArrayIsNotEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray is not empty.
byteArrayIsNullOrEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray is null or empty.
byteArraySize($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert on the ByteArray's size.
bytes($receiver) - Static method in class assertk.assertions.FileKt
Returns an assert on the file's contents as bytes.
bytes($receiver) - Static method in class assertk.assertions.PathKt
Assert on file bytes

C

catch(f) - Static method in class assertk.AssertKt
Catches any exceptions thrown in the given lambda and returns it. This is an easy way to assert on expected thrown exceptions.
cause($receiver) - Static method in class assertk.assertions.ThrowableKt
Returns an assert on the throwable's cause.
charArrayContains($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray contains the expected element, using in.
charArrayContainsAll($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray contains all the expected elements, in any order. The array may also contain additional elements.
charArrayContainsExactly($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
charArrayDoesNotContain($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray does not contain the expected element, using !in.
charArrayEach($receiver, f) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts on each item in the CharArray. The given lambda will be run for each item.
charArrayHasSameSizeAs($receiver, other) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray has the same size as the expected array.
charArrayHasSize($receiver, size) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray has the expected size.
charArrayIndex($receiver, index) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert that assertion on the value at the given index in the array.
charArrayIndexOld($receiver, index, f) - Static method in class assertk.assertions.PrimativeArrayKt
Deprecated. 
charArrayIsEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray is empty.
charArrayIsNotEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray is not empty.
charArrayIsNullOrEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray is null or empty.
charArraySize($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert on the CharArray's size.
charSequenceHasLength($receiver, length) - Static method in class assertk.assertions.CharsequenceKt
Asserts the char sequence has the expected length.
CharsequenceKt - Class in assertk.assertions
 
CollectionKt - Class in assertk.assertions
 
ComparableKt - Class in assertk.assertions
 
contains($receiver, element) - Static method in class assertk.assertions.IterableKt
Asserts the iterable contains the expected element, using in.
contains($receiver, other, ignoreCase) - Static method in class assertk.assertions.StringKt
Asserts the string contains the expected string.
containsAll($receiver, elements) - Static method in class assertk.assertions.CollectionKt
Asserts the collection contains all the expected elements, in any order. The collection may also contain additional elements.
containsExactly($receiver, elements) - Static method in class assertk.assertions.ListKt
Asserts the list contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
containsNone($receiver, elements) - Static method in class assertk.assertions.ArrayKt
Asserts the collection does not contain any of the expected elements.
containsNone($receiver, elements) - Static method in class assertk.assertions.CollectionKt
Asserts the collection does not contain any of the expected elements.
containsNone($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray does not contain any of the expected elements.
containsNone($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray does not contain any of the expected elements.
containsNone($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray does not contain any of the expected elements.
containsNone($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray does not contain any of the expected elements.
containsNone($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray does not contain any of the expected elements.
containsNone($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray does not contain any of the expected elements.
containsNone($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray does not contain any of the expected elements.
containsOnly($receiver, elements) - Static method in class assertk.assertions.CollectionKt
Asserts the collection contains only the expected elements

D

DiffExtractorKt - Class in assertk.assertions.support
 
doesNotContain($receiver, element) - Static method in class assertk.assertions.IterableKt
Asserts the iterable does not contain the expected element, using !in.
doesNotContain($receiver, other, ignoreCase) - Static method in class assertk.assertions.StringKt
Asserts the string does not contain the specified string.
doesNotHaveClass($receiver, jclass) - Static method in class assertk.assertions.AnyJVMKt
Asserts the value does not have the expected java class. This is an exact match, so assertThat("test").doesNotHaveClass(String::class.java) is fails but assertThat("test").doesNotHaveClass(Any::class.java) is successful.
doesNotHaveClass($receiver, kclass) - Static method in class assertk.assertions.AnyKt
Asserts the value does not have the expected kotlin class. This is an exact match, so assertThat("test").doesNotHaveClass(String::class) is fails but assertThat("test").doesNotHaveClass(Any::class) is successful.
doesNotThrowAnyException() - Method in class assertk.AssertBlock
 
doubleArrayContains($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray contains the expected element, using in.
doubleArrayContainsAll($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray contains all the expected elements, in any order. The array may also contain additional elements.
doubleArrayContainsExactly($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
doubleArrayDoesNotContain($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray does not contain the expected element, using !in.
doubleArrayEach($receiver, f) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts on each item in the DoubleArray. The given lambda will be run for each item.
doubleArrayHasSameSizeAs($receiver, other) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray has the same size as the expected array.
doubleArrayHasSize($receiver, size) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray has the expected size.
doubleArrayIndex($receiver, index) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert that assertion on the value at the given index in the array.
doubleArrayIndexOld($receiver, index, f) - Static method in class assertk.assertions.PrimativeArrayKt
Deprecated. 
doubleArrayIsEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray is empty.
doubleArrayIsNotEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray is not empty.
doubleArrayIsNullOrEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray is null or empty.
doubleArraySize($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert on the DoubleArray's size.

E

each($receiver, f) - Static method in class assertk.assertions.IterableKt
Asserts on each item in the iterable. The given lambda will be run for each item.
endsWith($receiver, other, ignoreCase) - Static method in class assertk.assertions.StringKt
Asserts the string ends with the expected string.
exactly($receiver, times, f) - Static method in class assertk.assertions.IterableKt
Asserts on each item in the iterable, passing if exactly times items pass. The given lambda will be run for each item.
exists($receiver) - Static method in class assertk.assertions.FileKt
Asserts the file exists.
expected($receiver, message, expected, actual) - Static method in class assertk.assertions.support.SupportKt
Fails an assert with the given expected message. These should be in the format:
extension($receiver) - Static method in class assertk.assertions.FileKt
Returns an assert on the file's extension.

F

fail($receiver, expected, actual) - Static method in class assertk.assertions.support.SupportKt
Fails an assert with the given expected and actual values.
fail(error) - Static method in class assertk.FailureKt
Fail the test with the given {@link AssertionError}.
fail(message, expected, actual) - Static method in class assertk.FailureKt
Fail the test with the given message.
FailingAssert<T> - Class in assertk
 
FailureJVMKt - Class in assertk
 
FailureKt - Class in assertk
 
FileKt - Class in assertk.assertions
 
floatArrayContains($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray contains the expected element, using in.
floatArrayContainsAll($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray contains all the expected elements, in any order. The array may also contain additional elements.
floatArrayContainsExactly($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
floatArrayDoesNotContain($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray does not contain the expected element, using !in.
floatArrayEach($receiver, f) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts on each item in the FloatArray. The given lambda will be run for each item.
floatArrayHasSameSizeAs($receiver, other) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray has the same size as the expected array.
floatArrayHasSize($receiver, size) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray has the expected size.
floatArrayIndex($receiver, index) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert that assertion on the value at the given index in the array.
floatArrayIndexOld($receiver, index, f) - Static method in class assertk.assertions.PrimativeArrayKt
Deprecated. 
floatArrayIsEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray is empty.
floatArrayIsNotEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray is not empty.
floatArrayIsNullOrEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray is null or empty.
floatArraySize($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert on the FloatArray's size.
forAll(f) - Method in class assertk.Table
 
forAll(f) - Method in class assertk.Table1
Runs the given lambda for each row in the table.
forAll(f) - Method in class assertk.Table2
Runs the given lambda for each row in the table.
forAll(f) - Method in class assertk.Table3
Runs the given lambda for each row in the table.
forAll(f) - Method in class assertk.Table4
Runs the given lambda for each row in the table.

G

getActual() - Method in class assertk.Assert
Deprecated. 
getError() - Method in class assertk.FailingAssert
 
getName() - Method in class assertk.Assert
 
getValue() - Method in class assertk.ValueAssert
 
given(assertion) - Method in class assertk.Assert
Allows checking the actual value of an assert. This can be used to build your own custom assertions.

H

hasCause($receiver, cause) - Static method in class assertk.assertions.ThrowableKt
Asserts the throwable is similar to the expected cause, checking the type and message.
hasClass($receiver, jclass) - Static method in class assertk.assertions.AnyJVMKt
Asserts the value has the expected java class. This is an exact match, so assertThat("test").hasClass(String::class.java) is successful but assertThat("test").hasClass(Any::class.java) fails.
hasClass($receiver, kclass) - Static method in class assertk.assertions.AnyKt
Asserts the value has the expected kotlin class. This is an exact match, so assertThat("test").hasClass(String::class) is successful but assertThat("test").hasClass(Any::class) fails.
hasDirectChild($receiver, expected) - Static method in class assertk.assertions.FileKt
Asserts the file has the expected direct child.
hasExtension($receiver, expected) - Static method in class assertk.assertions.FileKt
Asserts the file has the expected extension.
hasHashCode($receiver, hashCode) - Static method in class assertk.assertions.AnyKt
Asserts the value has the expected hash code from it's hashCode.
hashCodeFun($receiver) - Static method in class assertk.assertions.AnyKt
Returns an assert on the hasCode method of the value.
hasLineCount($receiver, lineCount) - Static method in class assertk.assertions.StringKt
Asserts the string has the expected number of lines.
hasMessage($receiver, message) - Static method in class assertk.assertions.ThrowableKt
Asserts the throwable has the expected message.
hasName($receiver, expected) - Static method in class assertk.assertions.FileKt
Asserts the file has the expected name.
hasNoCause($receiver) - Static method in class assertk.assertions.ThrowableKt
Asserts the throwable has no cause.
hasNotSameContentAs($receiver, expected) - Static method in class assertk.assertions.InputstreamKt
Asserts that the actual stream has a different content as the expected stream. Both InputStreams will be closed by the assertion.
hasParent($receiver, expected) - Static method in class assertk.assertions.FileKt
Asserts the file has the expected parent path.
hasPath($receiver, expected) - Static method in class assertk.assertions.FileKt
Asserts the file has the expected path.
hasRootCause($receiver, cause) - Static method in class assertk.assertions.ThrowableKt
Asserts the throwable is similar to the expected root cause, checking the type and message.
hasSameContentAs($receiver, expected) - Static method in class assertk.assertions.InputstreamKt
Asserts that the actual stream has the same content as the expected stream. Both InputStreams will be closed by the assertion.
hasSameLengthAs($receiver, other) - Static method in class assertk.assertions.CharsequenceKt
Asserts the char sequence has the same length as the expected one.
hasSameSizeAs($receiver, other) - Static method in class assertk.assertions.CollectionKt
Asserts the collection has the same size as the expected collection.
hasSameSizeAs($receiver, other) - Static method in class assertk.assertions.MapKt
Asserts the map has the same size as the expected map.
hasSize($receiver, size) - Static method in class assertk.assertions.CollectionKt
Asserts the collection has the expected size.
hasSize($receiver, size) - Static method in class assertk.assertions.MapKt
Asserts the collection has the expected size.
hasText($receiver, expected, charset) - Static method in class assertk.assertions.FileKt
Asserts the file contains exactly the expected text (and nothing else).
hasToString($receiver, string) - Static method in class assertk.assertions.AnyKt
Asserts the value has the expected string from it's toString.

I

index($receiver, index, f) - Static method in class assertk.assertions.ArrayKt
Deprecated. 
index($receiver, index) - Static method in class assertk.assertions.ArrayKt
Returns an assert that assertion on the value at the given index in the array.
index($receiver, index, f) - Static method in class assertk.assertions.ListKt
Deprecated. 
index($receiver, index) - Static method in class assertk.assertions.ListKt
Returns an assert that assertion on the value at the given index in the list.
InputstreamKt - Class in assertk.assertions
 
intArrayContains($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray contains the expected element, using in.
intArrayContainsAll($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray contains all the expected elements, in any order. The array may also contain additional elements.
intArrayContainsExactly($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
intArrayDoesNotContain($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray does not contain the expected element, using !in.
intArrayEach($receiver, f) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts on each item in the IntArray. The given lambda will be run for each item.
intArrayHasSameSizeAs($receiver, other) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray has the same size as the expected array.
intArrayHasSize($receiver, size) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray has the expected size.
intArrayIndex($receiver, index) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert that assertion on the value at the given index in the array.
intArrayIndexOld($receiver, index, f) - Static method in class assertk.assertions.PrimativeArrayKt
Deprecated. 
intArrayIsEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray is empty.
intArrayIsNotEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray is not empty.
intArrayIsNullOrEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray is null or empty.
intArraySize($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert on the IntArray's size.
invoke(values) - Method in interface assertk.Table.TableFun
Delegate that receives all values of a row.
isBetween($receiver, start, end) - Static method in class assertk.assertions.ComparableKt
Asserts the value is between the expected start and end values, inclusive.
isCharSequenceEmpty($receiver) - Static method in class assertk.assertions.CharsequenceKt
Asserts the char sequence is empty.
isCharSequenceNotEmpty($receiver) - Static method in class assertk.assertions.CharsequenceKt
Asserts the char sequence is not empty.
isCharSequenceNullOrEmpty($receiver) - Static method in class assertk.assertions.CharsequenceKt
Asserts the char sequence is null or empty.
isCloseTo($receiver, value, delta) - Static method in class assertk.assertions.ComparableKt
Asserts the value if it is close to the expected value with given delta.
isCloseTo($receiver, value, delta) - Static method in class assertk.assertions.ComparableKt
Asserts the value if it is close to the expected value with given delta.
isDataClassEqualTo($receiver, expected) - Static method in class assertk.assertions.AnyJVMKt
Like PrimativeArrayKt.isEqualTo but reports exactly which properties differ. Only supports data classes. Note: you should not use this if your data class has a custom Any.equals since it can be misleading.
isDirectory($receiver) - Static method in class assertk.assertions.FileKt
Asserts the file is a directory.
isDirectory($receiver, options) - Static method in class assertk.assertions.PathKt
Assert that the path is a directory.
isEmpty($receiver) - Static method in class assertk.assertions.CollectionKt
Asserts the collection is empty.
isEmpty($receiver) - Static method in class assertk.assertions.IterableKt
Asserts the iterable is empty.
isEmpty($receiver) - Static method in class assertk.assertions.MapKt
Asserts the collection is empty.
isEqualTo($receiver, expected) - Static method in class assertk.assertions.AnyKt
Asserts the value is equal to the expected one, using ==.
isEqualTo($receiver, expected) - Static method in class assertk.assertions.ArrayKt
Asserts the array contents are equal to the expected one, using contentDeepEquals.
isEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray contents are equal to the expected one, using contentDeepEquals.
isEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray contents are equal to the expected one, using contentDeepEquals.
isEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray contents are equal to the expected one, using contentDeepEquals.
isEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray contents are equal to the expected one, using contentDeepEquals.
isEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray contents are equal to the expected one, using contentDeepEquals.
isEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray contents are equal to the expected one, using contentDeepEquals.
isEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray contents are equal to the expected one, using contentDeepEquals.
isEqualTo($receiver, other, ignoreCase) - Static method in class assertk.assertions.StringKt
Asserts the string is equal to the expected string.
isEqualToWithGivenProperties($receiver, other, properties) - Static method in class assertk.assertions.AnyKt
Returns an assert that compares only the given properties on the calling class
isExecutable($receiver) - Static method in class assertk.assertions.PathKt
Assert that the path is an executable.
isFalse($receiver) - Static method in class assertk.assertions.BooleanKt
Asserts the boolean is false.
isFile($receiver) - Static method in class assertk.assertions.FileKt
Asserts the file is a simple file (not a directory).
isGreaterThan($receiver, other) - Static method in class assertk.assertions.ComparableKt
Asserts the value is greater than the expected value, using >.
isGreaterThanOrEqualTo($receiver, other) - Static method in class assertk.assertions.ComparableKt
Asserts the value is greater or equal to the expected value, using >=.
isHidden($receiver) - Static method in class assertk.assertions.FileKt
Asserts the file is hidden.
isHidden($receiver) - Static method in class assertk.assertions.PathKt
Assert that the path is hidden.
isIn($receiver, values) - Static method in class assertk.assertions.AnyKt
Asserts the value is in the expected values, using in.
isInstanceOf($receiver, jclass) - Static method in class assertk.assertions.AnyJVMKt
Asserts the value is an instance of the expected java class. Both assertThat("test").isInstanceOf(String::class.java) and assertThat("test").isInstanceOf(Any::class.java) is successful.
isInstanceOf($receiver, jclass, f) - Static method in class assertk.assertions.AnyJVMKt
Deprecated. 
isInstanceOf($receiver, kclass, f) - Static method in class assertk.assertions.AnyKt
Deprecated. 
isInstanceOf($receiver, kclass) - Static method in class assertk.assertions.AnyKt
Asserts the value is an instance of the expected kotlin class. Both assertThat("test").isInstanceOf(String::class) and assertThat("test").isInstanceOf(Any::class) is successful.
isLessThan($receiver, other) - Static method in class assertk.assertions.ComparableKt
Asserts the value is less than the expected value, using <.
isLessThanOrEqualTo($receiver, other) - Static method in class assertk.assertions.ComparableKt
Asserts the value is less than or equal to the expected value, using <=.
isNegative($receiver) - Static method in class assertk.assertions.NumberKt
Asserts the number is less than 0.
isNotEmpty($receiver) - Static method in class assertk.assertions.CollectionKt
Asserts the collection is not empty.
isNotEmpty($receiver) - Static method in class assertk.assertions.IterableKt
Asserts the iterable is not empty.
isNotEmpty($receiver) - Static method in class assertk.assertions.MapKt
Asserts the collection is not empty.
isNotEqualTo($receiver, expected) - Static method in class assertk.assertions.AnyKt
Asserts the value is not equal to the expected one, using !=.
isNotEqualTo($receiver, expected) - Static method in class assertk.assertions.ArrayKt
Asserts the array contents are not equal to the expected one, using contentDeepEquals.
isNotEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ByteArray contents are not equal to the expected one, using contentDeepEquals.
isNotEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the IntArray contents are not equal to the expected one, using contentDeepEquals.
isNotEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray contents are not equal to the expected one, using contentDeepEquals.
isNotEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray contents are not equal to the expected one, using contentDeepEquals.
isNotEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the FloatArray contents are not equal to the expected one, using contentDeepEquals.
isNotEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the DoubleArray contents are not equal to the expected one, using contentDeepEquals.
isNotEqualTo($receiver, expected) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the CharArray contents are not equal to the expected one, using contentDeepEquals.
isNotEqualTo($receiver, other, ignoreCase) - Static method in class assertk.assertions.StringKt
Asserts the string is not equal to the expected string.
isNotHidden($receiver) - Static method in class assertk.assertions.FileKt
Asserts the file is not hidden.
isNotIn($receiver, values) - Static method in class assertk.assertions.AnyKt
Asserts the value is not in the expected values, using !in.
isNotInstanceOf($receiver, jclass) - Static method in class assertk.assertions.AnyJVMKt
Asserts the value is not an instance of the expected java class. Both assertThat("test").isNotInstanceOf(String::class) and assertThat("test").isNotInstanceOf(Any::class) fails.
isNotInstanceOf($receiver, kclass) - Static method in class assertk.assertions.AnyKt
Asserts the value is not an instance of the expected kotlin class. Both assertThat("test").isNotInstanceOf(String::class) and assertThat("test").isNotInstanceOf(Any::class) fails.
isNotNull($receiver, f) - Static method in class assertk.assertions.AnyKt
Deprecated. 
isNotNull($receiver) - Static method in class assertk.assertions.AnyKt
Asserts the value is not null. You can pass in an optional lambda to run additional assertions on the non-null value.
isNotSameAs($receiver, expected) - Static method in class assertk.assertions.AnyKt
Asserts the value is not the same as the expected one, using !==.
isNotZero($receiver) - Static method in class assertk.assertions.NumberKt
Asserts the number is not 0.
isNull($receiver) - Static method in class assertk.assertions.AnyKt
Asserts the value is null.
isNullOrEmpty($receiver) - Static method in class assertk.assertions.CollectionKt
Asserts the collection is null or empty.
isNullOrEmpty($receiver) - Static method in class assertk.assertions.MapKt
Asserts the collection is null or empty.
isPositive($receiver) - Static method in class assertk.assertions.NumberKt
Asserts the number is greater than 0.
isReadable($receiver) - Static method in class assertk.assertions.PathKt
Assert that the path is readable.
isRegularFile($receiver, options) - Static method in class assertk.assertions.PathKt
Assert that the path is a regular file.
isSameAs($receiver, expected) - Static method in class assertk.assertions.AnyKt
Asserts the value is the same as the expected one, using ===.
isSameFileAs($receiver, expected) - Static method in class assertk.assertions.PathKt
Assert that the path points to the same object as the other path.
isStrictlyBetween($receiver, start, end) - Static method in class assertk.assertions.ComparableKt
Asserts the value is between the expected start and end values, non-inclusive.
isSymbolicLink($receiver) - Static method in class assertk.assertions.PathKt
Assert that the path is a symbolic link.
isTrue($receiver) - Static method in class assertk.assertions.BooleanKt
Asserts the boolean is true.
isWritable($receiver) - Static method in class assertk.assertions.PathKt
Assert that the path is writable link.
isZero($receiver) - Static method in class assertk.assertions.NumberKt
Asserts the number is 0.
IterableKt - Class in assertk.assertions
 

J

jClass($receiver) - Static method in class assertk.assertions.AnyJVMKt
Returns an assert on the java class of the value.

K

kClass($receiver) - Static method in class assertk.assertions.AnyKt
Returns an assert on the kotlin class of the value.
key($receiver, key, f) - Static method in class assertk.assertions.MapKt
Deprecated. 
key($receiver, key) - Static method in class assertk.assertions.MapKt
Returns an assert that asserts on the value at the given key in the map.

L

length($receiver) - Static method in class assertk.assertions.CharsequenceKt
Returns an assert on the CharSequence's length.
lines($receiver, charset) - Static method in class assertk.assertions.PathKt
Assert on file lines
ListKt - Class in assertk.assertions
 
longArrayContains($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray contains the expected element, using in.
longArrayContainsAll($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray contains all the expected elements, in any order. The array may also contain additional elements.
longArrayContainsExactly($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
longArrayDoesNotContain($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray does not contain the expected element, using !in.
longArrayEach($receiver, f) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts on each item in the LongArray. The given lambda will be run for each item.
longArrayHasSameSizeAs($receiver, other) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray has the same size as the expected array.
longArrayHasSize($receiver, size) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray has the expected size.
longArrayIndex($receiver, index) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert that assertion on the value at the given index in the array.
longArrayIndexOld($receiver, index, f) - Static method in class assertk.assertions.PrimativeArrayKt
Deprecated. 
longArrayIsEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray is empty.
longArrayIsNotEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray is not empty.
longArrayIsNullOrEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the LongArray is null or empty.
longArraySize($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert on the LongArray's size.

M

mapContains($receiver, key, value) - Static method in class assertk.assertions.MapKt
Asserts the map contains the expected key-value pair.
mapContainsAll($receiver, elements) - Static method in class assertk.assertions.MapKt
Asserts the map contains all the expected elements. The map may also contain additional elements.
mapContainsExactly($receiver, elements) - Static method in class assertk.assertions.MapKt
Deprecated. 
mapContainsNone($receiver, elements) - Static method in class assertk.assertions.MapKt
Asserts the map does not contain any of the expected elements.
mapContainsOnly($receiver, elements) - Static method in class assertk.assertions.MapKt
Asserts the map contains only the expected elements. There must not be any extra elements.
mapContainsPair($receiver, element) - Static method in class assertk.assertions.MapKt
Asserts the map contains the expected key-value pair.
mapDoesNotContain($receiver, key, value) - Static method in class assertk.assertions.MapKt
Asserts the map does not contain the expected key-value pair.
mapDoesNotContainPair($receiver, element) - Static method in class assertk.assertions.MapKt
Asserts the map does not contain the expected key-value pair.
MapKt - Class in assertk.assertions
 
matches($receiver, regex) - Static method in class assertk.assertions.StringKt
Asserts the string matches the expected regular expression.
matchesPredicate($receiver, f) - Static method in class assertk.assertions.PredicateKt
Asserts if the values satisfies the predicate provided.
message($receiver) - Static method in class assertk.assertions.ThrowableKt
Returns an assert on the throwable's message.

N

name($receiver) - Static method in class assertk.assertions.FileKt
Returns an assert on the file's name.
notifyFailure(e) - Static method in class assertk.FailureKt
 
NumberKt - Class in assertk.assertions
 

P

parent($receiver) - Static method in class assertk.assertions.FileKt
Returns an assert on the file's parent.
path($receiver) - Static method in class assertk.assertions.FileKt
Returns an assert on the file's path.
PathKt - Class in assertk.assertions
 
PlatformKt - Class in assertk
 
PredicateKt - Class in assertk.assertions
 
PrimativeArrayKt - Class in assertk.assertions
 
prop($receiver, callable) - Static method in class assertk.assertions.AnyJVMKt
Returns an assert that asserts on the given property.
prop($receiver, name, extract) - Static method in class assertk.assertions.AnyKt
Returns an assert that asserts on the given property of the value.

R

returnedValue(f) - Method in class assertk.AssertBlock
Runs the given lambda if the block returns a value, otherwise fails.
rootCause($receiver) - Static method in class assertk.assertions.ThrowableKt
Returns an assert on the throwable's root cause.
row(val1) - Method in class assertk.Table1
Adds a row to the table with the given values.
row(val1) - Method in class assertk.Table1Builder
Adds a row to the table with the given values.
row(val1, val2) - Method in class assertk.Table2
Adds a row to the table with the given values.
row(val1, val2) - Method in class assertk.Table2Builder
Adds a row to the table with the given values.
row(val1, val2, val3) - Method in class assertk.Table3
Adds a row to the table with the given values.
row(val1, val2, val3) - Method in class assertk.Table3Builder
Adds a row to the table with the given values.
row(val1, val2, val3, val4) - Method in class assertk.Table4
Adds a row to the table with the given values.
row(val1, val2, val3, val4) - Method in class assertk.Table4Builder
Adds a row to the table with the given values.

S

shortArrayContains($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray contains the expected element, using in.
shortArrayContainsAll($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray contains all the expected elements, in any order. The array may also contain additional elements.
shortArrayContainsExactly($receiver, elements) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
shortArrayDoesNotContain($receiver, element) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray does not contain the expected element, using !in.
shortArrayEach($receiver, f) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts on each item in the ShortArray. The given lambda will be run for each item.
shortArrayHasSameSizeAs($receiver, other) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray has the same size as the expected array.
shortArrayHasSize($receiver, size) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray has the expected size.
shortArrayIndex($receiver, index) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert that assertion on the value at the given index in the array.
shortArrayIndexOld($receiver, index, f) - Static method in class assertk.assertions.PrimativeArrayKt
Deprecated. 
shortArrayIsEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray is empty.
shortArrayIsNotEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray is not empty.
shortArrayIsNullOrEmpty($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Asserts the ShortArray is null or empty.
shortArraySize($receiver) - Static method in class assertk.assertions.PrimativeArrayKt
Returns an assert on the ShortArray's size.
show(value, wrap) - Static method in class assertk.assertions.support.SupportKt
Shows the primary value in a failure message.
ShowErrorKt - Class in assertk
 
size($receiver) - Static method in class assertk.assertions.ArrayKt
Returns an assert on the Arrays's size.
size($receiver) - Static method in class assertk.assertions.CollectionKt
Returns an assert on the Collection's size.
size($receiver) - Static method in class assertk.assertions.MapKt
Returns an assert on the Maps's size.
stackTrace($receiver) - Static method in class assertk.assertions.ThrowableJVMKt
Returns an assert on the throwable's stack trace.
startsWith($receiver, other, ignoreCase) - Static method in class assertk.assertions.StringKt
Asserts the string starts with the expected string.
StringKt - Class in assertk.assertions
 
SupportJVMKt - Class in assertk.assertions.support
 
SupportKt - Class in assertk.assertions.support
 

T

Table - Class in assertk
A table of rows to assert on. This makes it easy to run the same assertions are a number of inputs and outputs.
Table.TableFun - Interface in assertk
 
Table1<C1> - Class in assertk
A table with rows of 1 value.
Table1Builder - Class in assertk
Builds a table with the given rows.
Table2<C1,C2> - Class in assertk
A table with rows of 2 values.
Table2Builder - Class in assertk
Builds a table with the given rows.
Table3<C1,C2,C3> - Class in assertk
A table with rows of 3 values.
Table3Builder - Class in assertk
Builds a table with the given rows.
Table4<C1,C2,C3,C4> - Class in assertk
A table with rows of 4 values.
Table4Builder - Class in assertk
Builds a table with the given rows.
TableBuilder - Class in assertk
Builds a table with the given rows.
TableKt - Class in assertk
 
tableOf(name1) - Static method in class assertk.TableKt
Builds a table with the given column names.
tableOf(name1, name2) - Static method in class assertk.TableKt
Builds a table with the given column names.
tableOf(name1, name2, name3) - Static method in class assertk.TableKt
Builds a table with the given column names.
tableOf(name1, name2, name3, name4) - Static method in class assertk.TableKt
Builds a table with the given column names.
text($receiver, charset) - Static method in class assertk.assertions.FileKt
Returns an assert on the file's contents as text.
ThrowableJVMKt - Class in assertk.assertions
 
ThrowableKt - Class in assertk.assertions
 
thrownError(f) - Method in class assertk.AssertBlock
Runs the given lambda if the block throws an error, otherwise fails.
toStringFun($receiver) - Static method in class assertk.assertions.AnyKt
Returns an assert on the toString method of the value.
transform(name, transform) - Method in class assertk.Assert
Transforms an assertion from one type to another. If the assertion is failing the resulting assertion will still be failing, otherwise the mapping function is called. An optional name can be provided, otherwise this assertion's name will be used.

V

ValueAssert<T> - Class in assertk
 
A B C D E F G H I J K L M N P R S T V 
Skip navigation links