Permalink
Browse files

Fix tests after moving WebScript to a Java interface

  • Loading branch information...
1 parent 85fd370 commit edf80b05599d3d38eb35d71ba7f43fd5b9ab14cd @skuro committed Jan 22, 2013
View
12 pom.xml
@@ -65,6 +65,12 @@
</repositories>
<dependencies>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging-api</artifactId>
+ <version>1.1</version>
+ <scope>provided</scope>
+ </dependency>
<!-- https://jira.springsource.org/browse/SESURF-99 -->
<dependency>
<groupId>javax.servlet</groupId>
@@ -94,6 +100,12 @@
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-mock</artifactId>
+ <version>2.0.8</version>
+ <scope>test</scope>
+ </dependency>
<!-- Clojure runtime -->
<dependency>
@@ -1,11 +1,12 @@
;; NOTE: any ns form would be ignored
(use '[spring.surf.webscript :as ws])
+(import spring.surf.webscript.WebScript)
(defrecord TestWebScript
[]
- ws/WebScript
+ WebScript
(run [_ in out model]
(ws/return model {"clojureVal" "SUCCESS"})))
@@ -18,5 +18,4 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
-
VALUE: ${clojureVal}
@@ -1,6 +1,7 @@
;; NOTE: any ns form would be ignored
(use '[spring.surf.webscript :as ws])
+(import spring.surf.webscript.WebScript)
(defn calc
"Sample calculation"
@@ -11,7 +12,7 @@
(defrecord TestWebScript
[]
- ws/WebScript
+ WebScript
(run
[_ in out model]
(ws/return model {:result (calc (merge (ws/template-args model) (ws/args model)))})))
@@ -18,5 +18,4 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
-
VALUE: ${result}
@@ -1,6 +1,7 @@
;; NOTE: any ns form would be ignored
(use '[spring.surf.webscript :as ws])
+(import spring.surf.webscript.WebScript)
(defn calc
"Sample calculation"
@@ -11,7 +12,7 @@
(defrecord TestWebScript
[]
- ws/WebScript
+ WebScript
(run
[_ in out model]
(.write out "streamed content")
@@ -18,5 +18,4 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
-
VALUE: ${clojureVal}

0 comments on commit edf80b0

Please sign in to comment.