예제 #1
0
파일: test_proxy.py 프로젝트: JiadaoZ22/NLP
    def testProxyWithInst(self):
        itf2 = JPackage("jpype.proxy").ITestInterface3
        Test3 = JPackage("jpype.proxy").Test3

        c = C()
        proxy = JProxy(itf2, inst=c)
        Test3.testProxy(proxy)
예제 #2
0
파일: test_proxy.py 프로젝트: JiadaoZ22/NLP
    def testProxyWithDict(self):
        d = {
            'testMethod': _testMethod,
            'testMethod2': _testMethod2,
        }
        itf2 = JPackage("jpype.proxy").ITestInterface3
        Test3 = JPackage("jpype.proxy").Test3
        proxy = JProxy(itf2, dictionary=d)

        Test3.testProxy(proxy)