Liking cljdoc? Tell your friends :D

clj-momo.test-helpers.http-assert-2


test-deleteclj

(test-delete path port)

Helper which test a delete request occurs with success

Helper which test a delete request occurs with success
sourceraw docstring

test-getclj

(test-get path port expected-entity)
(test-get path port transform-result-fn expected-entity)

Helper which test a get request occurs with success and return the right object Returns the result of the GET call.

Helper which test a get request occurs with success and return the right object
Returns the result of the GET call.
sourceraw docstring

test-postclj

(test-post path port new-entity)
(test-post path port new-entity expected)
(test-post path port transform-result-fn new-entity expected)

Test a successful POST returns the parsed-body. An expected result can be provided.

Test a successful POST returns the parsed-body.
An expected result can be provided.
sourceraw docstring

test-putclj

(test-put path port new-entity)
(test-put path port new-entity expected)

Test a successful PUT returns the parsed-body. An expected result can be provided.

Test a successful PUT returns the parsed-body.
An expected result can be provided.
sourceraw docstring

with-port-fnclj

(with-port-fn port-fn http-fn)

Helper to compose a fn that knows how to lookup an HTTP port with an HTTP method fn (from above) Example: (def test-get (http-assert-2/with-port-fn get-http-port http-assert-2/test-get))

Helper to compose a fn that knows how to lookup an HTTP port with
an HTTP method fn (from above)
Example:
  (def test-get (http-assert-2/with-port-fn get-http-port http-assert-2/test-get))
sourceraw docstring

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

× close