Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- makes pom-as-project work in NetBeans Enclojure
- Loading branch information
1 parent
5961500
commit 1bbcf90
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(ns test-pom | ||
(:use [leiningen.core :only [read-project defproject]] | ||
[leiningen.pom :only [pom make-model]]) | ||
(:use [clojure.test] | ||
[clojure.contrib.java-utils :only [file delete-file]])) | ||
|
||
(def test-project (read-project "sample/project.clj")) | ||
|
||
(deftest test-pom | ||
(let [pom-file (file (:root test-project) "pom.xml")] | ||
(delete-file pom-file true) | ||
(pom test-project) | ||
(is (.exists pom-file)))) | ||
|
||
(deftest test-make-model-includes-build-settings | ||
(let [model (make-model test-project)] | ||
(is (= "src" (-> model .getBuild .getSourceDirectory))) | ||
(is (= "test" (-> model .getBuild .getTestSourceDirectory))))) |