Exemple #1
0
    def testProxyWithInst(self):
        itf2 = JPackage("jpype.proxy").ITestInterface3
        Test3 = JPackage("jpype.proxy").Test3

        c = C()
        proxy = JProxy(itf2, inst=c)
        Test3.testProxy(proxy)
Exemple #2
0
    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)