On Feb 11, 12:21 pm, Stuart Sierra <the.stuart.sie...@gmail.com>
wrote:
> On Feb 11, 11:46 am, BerlinBrown <berlin.br...@gmail.com> wrote:
>
> > (defn -init [] ())
>
> > (defn -testDog []
> >   (println "Dog"))
>
> There's your problem: Java methods always need an extra first
> argument, the object on which the method was called.  It's like the
> "this" keyword in Java.
>
> -Stuart Sierra

Thanks.  This is what I ended up with for others that want to do the
same thing.  Junit 4.4 with Clojure 12/2008 version:

(compile 'test.OctaneTestGen)

(ns test.OctaneTestGen
    (:import (junit.framework Assert))
        (:gen-class
         :extends junit.framework.TestCase))

(defn -init [_] ())

(defn -testDog [_]
  (println "Dog")
  (Assert/fail "Test not implemented"))

(defn -testDog2 [_]
  (println "Dog"))

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to