Skip to content

Commit

Permalink
More testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed May 6, 2024
1 parent faffd08 commit 4eb61f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/jpy/fixtures/CyclicReferenceChild2.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
* @author Jianfeng Mao
*/
@SuppressWarnings("UnusedDeclaration")
public abstract class CyclicReferenceChild2 extends CyclicReferenceParent {
public class CyclicReferenceChild2 extends CyclicReferenceParent {
}
5 changes: 4 additions & 1 deletion src/test/python/jpy_gettype_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@ def test_issue_74(self):

def test_cyclic_reference(self):
"""
Test if delaying resolving super classes doesn't break existing behavior
Test if delaying resolving super classes doesn't break existing class reference pattern.
"""
j_child1_class = jpy.get_type("org.jpy.fixtures.CyclicReferenceChild1")
j_child2_class = jpy.get_type("org.jpy.fixtures.CyclicReferenceChild2")
j_child2 = j_child2_class()

j_child1 = j_child1_class.of(8)
self.assertEqual(88, j_child1.parentMethod())
self.assertEqual(888, j_child1.grandParentMethod())
self.assertIsNone(j_child1.refChild2(j_child2))
self.assertEqual(8, j_child1.get_x())
self.assertEqual(10, j_child1.y)
self.assertEqual(100, j_child1.z)
Expand Down

0 comments on commit 4eb61f9

Please sign in to comment.