I wrote jython code to test Java projects in the past. Saves me a headache when washing and speeds up the death of my keyboard with excessive keystrokes.
import sys sys.path.append('path/to/library.jar') from com.example.library import Foo import unittest class TestFoo(unittest.TestCase): def testFoo(): bar = (2, 3, 4) foo = Foo(bar) self.assertIn(2, foo)
source share