 ;
 
 (defn callable?
-    "Test if given function-name is bound to the real function."
-    [function-name]
-    (clojure.test/function? function-name))
+  "Test if given function-name is bound to the real function."
+  [function-name]
+  (clojure.test/function? function-name))
 
 
 

                nil (read-list-of-all-jobs "jenkins-url" "job-name")))))

(deftest test-list-of-all-jobs-null
    "Check the clj-jenkins-api.jenkins-api/list-of-all-jobs"
    (testing "the clj-jenkins-api.jenkins-api/list-of-all-jobs"
        (with-redefs [http-client/get (fn [url mapa] {:body "null"})]
            (are [x y] (= x y)
                nil (read-list-of-all-jobs "" "")
                nil (read-list-of-all-jobs "jenkins-url" "")
                nil (read-list-of-all-jobs "" "job-name")
                nil (read-list-of-all-jobs "jenkins-url" "job-name")))))


;

(deftest test-log-existence
  "Check that the clj-jenkins-api.jenkins-api/log definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/log definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/log))))



(deftest test-encode-spaces-existence
  "Check that the clj-jenkins-api.jenkins-api/encode-spaces definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/encode-spaces definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/encode-spaces))))



(deftest test-get-command-existence
  "Check that the clj-jenkins-api.jenkins-api/get-command definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/get-command definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/get-command))))



(deftest test-post-command-existence
  "Check that the clj-jenkins-api.jenkins-api/post-command definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/post-command definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/post-command))))


(deftest test-job-name->url-existence
  "Check that the clj-jenkins-api.jenkins-api/job-name->url definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/job-name->url definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/job-name->url))))


(deftest test-update-jenkins-url-existence
  "Check that the clj-jenkins-api.jenkins-api/update-jenkins-url definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/update-jenkins-url definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/update-jenkins-url))))



(deftest test-read-list-of-all-jobs-existence
  "Check that the clj-jenkins-api.jenkins-api/read-list-of-all-jobs definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/read-list-of-all-jobs definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/read-list-of-all-jobs))))



(deftest test-read-job-results-existence
  "Check that the clj-jenkins-api.jenkins-api/read-job-results definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/read-job-results definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/read-job-results))))



(deftest test-read-file-from-artifact-existence
  "Check that the clj-jenkins-api.jenkins-api/read-file-from-artifact definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/read-file-from-artifact definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/read-file-from-artifact))))



(deftest test-ok-response-structure-existence
  "Check that the clj-jenkins-api.jenkins-api/ok-response-structure definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/ok-response-structure definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/ok-response-structure))))



(deftest test-error-response-structure-existence
  "Check that the clj-jenkins-api.jenkins-api/error-response-structure definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/error-response-structure definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/error-response-structure))))



(deftest test-job-related-command-existence
  "Check that the clj-jenkins-api.jenkins-api/job-related-command definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/job-related-command definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/job-related-command))))



(deftest test-enable-job-existence
  "Check that the clj-jenkins-api.jenkins-api/enable-job definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/enable-job definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/enable-job))))



(deftest test-disable-job-existence
  "Check that the clj-jenkins-api.jenkins-api/disable-job definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/disable-job definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/job-related-command))))



(deftest test-delete-job-existence
  "Check that the clj-jenkins-api.jenkins-api/delete-job definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/delete-job definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/delete-job))))



(deftest test-create-job-existence
  "Check that the clj-jenkins-api.jenkins-api/create-job definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/create-job definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/create-job))))



(deftest test-update-job-existence
  "Check that the clj-jenkins-api.jenkins-api/update-job definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/update-job definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/delete-job))))



(deftest test-replace-placeholder-existence
  "Check that the clj-jenkins-api.jenkins-api/replace-placeholder definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/replace-placeholder definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/replace-placeholder))))



(deftest test-update-template-existence
  "Check that the clj-jenkins-api.jenkins-api/update-template definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/update-template definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/update-template))))



(deftest test-log-operation-existence
  "Check that the clj-jenkins-api.jenkins-api/log-operation definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/log-operation definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/update-template))))



(deftest test-send-configuration-xml-to-jenkins-existence
  "Check that the clj-jenkins-api.jenkins-api/send-configuration-xml-to-jenkins definition exists."
  (testing
    "if the clj-jenkins-api.jenkins-api/send-configuration-xml-to-jenkins definition exists."
    (is (callable? 'clj-jenkins-api.jenkins-api/update-template))))



(deftest test-get-template-existence
  "Check that the clj-jenkins-api.jenkins-api/get-template definition exists."
  (testing "if the clj-jenkins-api.jenkins-api/get-template definition exists."
           (is (callable? 'clj-jenkins-api.jenkins-api/update-template))))



