Debian Codegraph @

src/test/python/jpy_java_embeddable_test.py

raw symbols SCIP
1 import unittest
2
3 import jpyutil
4
5 jpyutil.init_jvm(jvm_maxmem='512M', jvm_classpath=['target/test-classes', 'target/classes'])
6 import jpy
7
8 class TestJavaTests(unittest.TestCase):
9 def testStartingAndStoppingIfAvailable(self):
10 PyLibTest = jpy.get_type('org.jpy.EmbeddableTest')
11 PyLibTest.testStartingAndStoppingIfAvailable()
12
13 def testPassStatement(self):
14 PyLibTest = jpy.get_type('org.jpy.EmbeddableTest')
15 PyLibTest.testPassStatement()
16
17 def testPrintStatement(self):
18 PyLibTest = jpy.get_type('org.jpy.EmbeddableTest')
19 PyLibTest.testPrintStatement()
20
21 def testIncrementByOne(self):
22 PyLibTest = jpy.get_type('org.jpy.EmbeddableTest')
23 PyLibTest.testIncrementByOne()
24
25 if __name__ == '__main__':
26 print('\nRunning ' + __file__)
27 unittest.main()