Skip to content

Instantly share code, notes, and snippets.

@groves
Created August 29, 2009 22:10
Show Gist options
  • Save groves/177698 to your computer and use it in GitHub Desktop.
Save groves/177698 to your computer and use it in GitHub Desktop.
JUnit happily runs a clamp class from ant
from junit.framework import TestCase
from clamp import Clamp, java, jvoid
class TestJUnit(Clamp, TestCase):
@java(jvoid)
def testAddition(self):
self.assertEquals(4, 1 + 3)
integrationtest:
[exec] Compiling 1 proxies to /Users/groves/dev/clamp/build/integration-classes
[junit] Testsuite: clampjunit.TestJUnit
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.007 sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment