add test for java call hierarchy with wildcards; refactor HierarchyTester to allow node descriptor comparator to test the children order

GitOrigin-RevId: 6b60e71eb99206b38072c3b43e68b4a56c9ff80b
This commit is contained in:
Alexey Kudravtsev
2022-01-13 17:29:11 +01:00
committed by intellij-monorepo-bot
parent dcd374eb82
commit 079e80a8ab
2 changed files with 8 additions and 5 deletions

View File

@@ -8,8 +8,10 @@ class BoardImpl implements Board {
public int getCount() {return 0;}
}
class King<B extends Board> {
B board;
boolean isLast() {
return board.getCount() == 1;
}
boolean isLast1(B board) {
return board.getCount() == 1;
}
boolean isLast2(java.util.List<? extends Board> list) {
return list.get(0).getCount() == 1;
}
}

View File

@@ -1,3 +1,4 @@
<node text="BoardImpl.getCount() (p)" base="true">
<node text="King.isLast() (p)"/>
<node text="King.isLast1(B) (p)"/>
<node text="King.isLast2(List&lt;? extends Board&gt;) (p)"/>
</node>