Generate the test Java compilation unit.
(atj-gen-test-cunit deep$ guards$ no-aij-types$ java-package$ java-class$ tests$ verbose$ pkg-class-names fn-method-names wrld) → cunit
The compilation unit imports all the AIJ public classes,
since it needs to reference (at least some of) them.
It also imports
Function:
(defun atj-gen-test-cunit (deep$ guards$ no-aij-types$ java-package$ java-class$ tests$ verbose$ pkg-class-names fn-method-names wrld) (declare (xargs :guard (and (booleanp deep$) (booleanp guards$) (booleanp no-aij-types$) (maybe-stringp java-package$) (stringp java-class$) (atj-test-listp tests$) (booleanp verbose$) (string-string-alistp pkg-class-names) (symbol-string-alistp fn-method-names) (plist-worldp wrld)))) (let ((__function__ 'atj-gen-test-cunit)) (declare (ignorable __function__)) (b* ((class (atj-gen-test-class tests$ deep$ guards$ no-aij-types$ java-class$ verbose$ pkg-class-names fn-method-names wrld)) (imports (if no-aij-types$ (list (jimport nil "java.util.Arrays")) (list (jimport nil (str::cat *aij-package* ".*")) (jimport nil "java.math.BigInteger") (jimport nil "java.util.Arrays")))) ((run-when verbose$) (cw "~%Generate the test Java compilation unit.~%"))) (make-jcunit :package? java-package$ :imports imports :types (list class)))))
Theorem:
(defthm jcunitp-of-atj-gen-test-cunit (b* ((cunit (atj-gen-test-cunit deep$ guards$ no-aij-types$ java-package$ java-class$ tests$ verbose$ pkg-class-names fn-method-names wrld))) (jcunitp cunit)) :rule-classes :rewrite)