On Feb 28, 12:05 pm, Berlin Brown <berlin.br...@gmail.com> wrote:
> On Feb 28, 12:04 pm, BerlinBrown <berlin.br...@gmail.com> wrote:
>
> > If you want to use junit with clojure, this is what I ended up doing.
> > Yes, I know there are many clojure test frameworks. But if you are
> > stuck with a junit mind, then here is an example approach.
>
> >http://clojure.googlegroups.com/web/junit_example_clojure.clj?gsc=rSQ...
>
> The source is contained within one file, but in reality they should be
> broken up into three files.
>
> 1. The Test Case
> 2. The Test Suite
> 3. The compile class.
Here is the output:
Running Test Suite
.Dog
F
Time: 0.002
There was 1 failure:
1) testDog(test.OctaneSampleTestGen)
junit.framework.AssertionFailedError: Test not implemented
at test.OctaneSampleTestGen$_testDog__10.invoke
(OctaneSampleTestGen.clj:55)
at test.OctaneSampleTestGen.testDog(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at test.OctaneSampleTestGen.runTest(Unknown Source)
at test.OctaneSampleTestGen.runBare(Unknown Source)
at test.OctaneSampleTestGen.run(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:86)
at clojure.lang.Reflector.invokeStaticMethod(Reflector.java:192)
at clojure.lang.Reflector.invokeStaticMethod(Reflector.java:178)
at test.OctaneTestSuite$_main__19.doInvoke(OctaneTestSuite.clj:58)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at test.OctaneTestSuite.main(Unknown Source)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---