Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f4e21a97d5
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.613 kb
(ns com.clojurebook.annotations.junit
(:import (org.junit Test Assert))
(:gen-class
:name com.clojurebook.annotations.JUnitTest
:methods [[^{org.junit.Test true} simpleTest [] void]
[^{org.junit.Test {:timeout 2000}} timeoutTest [] void]
[^{org.junit.Test {:expected NullPointerException}} badException []
void]]))
(defn -simpleTest
[this]
(Assert/assertEquals (class this) com.clojurebook.annotations.JUnitTest))
(defn -badException
[this]
(Integer/parseInt (System/getProperty "nonexistent")))
(defn -timeoutTest
[this]
(Thread/sleep 10000))
Jump to Line
Something went wrong with that request. Please try again.