Skip to content

Instantly share code, notes, and snippets.

@talios
Created January 31, 2012 10:48
Show Gist options
  • Select an option

  • Save talios/1709864 to your computer and use it in GitHub Desktop.

Select an option

Save talios/1709864 to your computer and use it in GitHub Desktop.
The first clojure based Halbuilder IT test.
(ns haltest
(:use [clojure.test]))
(deftest haltest
(let [resource-factory (com.theoryinpractise.halbuilder.ResourceFactory.)
resource (doto (.newHalResource resource-factory "/foo")
(.withProperty "name" "Mark")
(.withLink "/home" "home"))]
(println (.renderXml (.asRenderableResource resource)))) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment