コード例 #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)