:author "Olof-Joachim Frahm <olof@macrolet.net>"
:license "Simplified BSD License"
:depends-on (#:closer-mop)
+ :in-order-to ((asdf:test-op (asdf:load-op #:cl-mock-tests)))
+ :perform (asdf:test-op :after (op c)
+ (funcall (find-symbol (symbol-name '#:run!) '#:fiveam)
+ (find-symbol (symbol-name '#:cl-mock) '#:cl-mock-tests)))
:serial T
:components ((:module "src"
:components
((:file "package")
- (:file "functions")))))
+ (:file "functions")
+ (:file "mock")
+ (:file "methods")
+ (:file "facade")))))
+
+(asdf:defsystem #:cl-mock-tests
+ :depends-on (#:cl-mock #:fiveam)
+ :serial T
+ :components ((:module "tests"
+ :components
+ ((:file "package")
+ (:file "suite")
+ (:file "functions")
+ (:file "facade")
+ (:file "methods")))))
(in-package #:cl-mock-tests)
-(import 'cl-mock::(call-with-mocks make-mock-bindings register-mock if-called when-called call-previous))
+(in-suite cl-mock)
(def-test call-with-mocks.empty ()
(is (eq T (call-with-mocks
(in-package #:cl-user)
(defpackage #:cl-mock-tests
- (:use #:cl #:cl-mock #:fiveam))
+ (:use #:cl #:cl-mock #:fiveam)
+ (:import-from #:cl-mock #:call-with-mocks #:progm #:make-mock-bindings #:if-called #:when-called))