Liking cljdoc? Tell your friends :D

cljito.core


anyclj

(any)
(any klass)
source

any-booleanclj

(any-boolean)
source

any-byteclj

(any-byte)
source

any-charclj

(any-char)
source

any-collectionclj

(any-collection)
source

any-collection-ofclj

(any-collection-of klass)
source

any-doubleclj

(any-double)
source

any-floatclj

(any-float)
source

any-intclj

(any-int)
source

any-listclj

(any-list)
source

any-list-ofclj

(any-list-of klass)
source

any-longclj

(any-long)
source

any-mapclj

(any-map)
source

any-mapOfclj

(any-mapOf key-class value-class)
source

any-objectclj

(any-object)
source

any-setclj

(any-set)
source

any-set-ofclj

(any-set-of klass)
source

any-shortclj

(any-short)
source

any-Stringclj

(any-String)
source

any-varargclj

(any-vararg)
source

at-leastclj

(at-least n)
source

at-least-onceclj

source

at-mostclj

(at-most n)
source

classesclj

(classes & class-list)

Converts the list of given classes into a Java array, especially when Mockito's thenThrow method accepts varargs.

Converts the list of given classes into a Java array,
especially when Mockito's thenThrow method accepts
varargs.
sourceraw docstring

do-*cljmacro

(do-* mock-fn outcome target action)
source

do-nothingcljmacro

(do-nothing target action)
source

do-returncljmacro

(do-return result target action)
source

do-throwcljmacro

(do-throw exception target action)
source

mockclj

(mock klass)

Returns the Mockito-mocked object.

Returns the Mockito-mocked object.
sourceraw docstring

neverclj

source

spyclj

(spy obj)

Returns the Mockito-spied (real) object.

Returns the Mockito-spied (real) object.
sourceraw docstring

throwablesclj

(throwables & throwable-list)

Converts the list of given throwables into a Java array, useful for Mockito methods that expects throwables as varargs.

Converts the list of given throwables into a Java array,
useful for Mockito methods that expects throwables as varargs.
sourceraw docstring

timesclj

(times n)
source

verify->cljmacro

(verify-> mocked action)
(verify-> mocked counts action)
source

when->cljmacro

(when-> mocked action & behaviors)

Stubs the given mocked object. Returns the mocked object, making it very easy to create mocks in tests. For example:

(when-> (mock List) (.get 0) (.thenThrow (classes RuntimeException))) (when-> (mock List) (.get 1) (.thenReturn "first") (.thenReturn "second"))

Stubs the given mocked object. Returns the mocked object,
 making it very easy to create mocks in tests. For example:

(when-> (mock List) (.get 0) (.thenThrow (classes RuntimeException)))
(when-> (mock List) (.get 1) (.thenReturn "first") (.thenReturn "second"))
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close