-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix py tests, add a test, disable java tests
1 parent
a292dfb
commit faffd08
Showing
11 changed files
with
143 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
|
||
package org.jpy.fixtures; | ||
|
||
import java.lang.reflect.Array; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Used as a test class for the test cases in jpy_overload_test.py | ||
* | ||
* @author Jianfeng Mao | ||
*/ | ||
@SuppressWarnings("UnusedDeclaration") | ||
public class CyclicReferenceChild1 extends CyclicReferenceParent { | ||
private int x; | ||
|
||
private CyclicReferenceChild1(int x) { | ||
this.x = x; | ||
} | ||
|
||
public static CyclicReferenceChild1 of(int x) { | ||
return new CyclicReferenceChild1(x); | ||
} | ||
|
||
public int get_x() { | ||
return this.x; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
|
||
package org.jpy.fixtures; | ||
|
||
import java.lang.reflect.Array; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Used as a test class for the test cases in jpy_overload_test.py | ||
* | ||
* @author Jianfeng Mao | ||
*/ | ||
@SuppressWarnings("UnusedDeclaration") | ||
public abstract class CyclicReferenceChild2 extends CyclicReferenceParent { | ||
} |
33 changes: 33 additions & 0 deletions
33
src/test/java/org/jpy/fixtures/CyclicReferenceGrandParent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
|
||
package org.jpy.fixtures; | ||
|
||
import java.lang.reflect.Array; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Used as a test class for the test cases in jpy_overload_test.py | ||
* | ||
* @author Jianfeng Mao | ||
*/ | ||
@SuppressWarnings("UnusedDeclaration") | ||
public class CyclicReferenceGrandParent { | ||
private int x; | ||
public int z = 100; | ||
|
||
public CyclicReferenceGrandParent() { | ||
} | ||
|
||
public void refChild2(CyclicReferenceChild2 child2) { | ||
} | ||
|
||
public int grandParentMethod() { | ||
return 888; | ||
} | ||
|
||
public int get_x() { | ||
return this.x; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
// | ||
|
||
package org.jpy.fixtures; | ||
|
||
import java.lang.reflect.Array; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Used as a test class for the test cases in jpy_overload_test.py | ||
* | ||
* @author Jianfeng Mao | ||
*/ | ||
@SuppressWarnings("UnusedDeclaration") | ||
public abstract class CyclicReferenceParent extends CyclicReferenceGrandParent { | ||
private int x; | ||
public int y = 10; | ||
|
||
public static CyclicReferenceChild1 of(int x) { | ||
return CyclicReferenceChild1.of(x); | ||
} | ||
|
||
public int parentMethod() { | ||
return 88; | ||
} | ||
|
||
public int get_x() { | ||
return this.x; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters