Skip to content

Commit efe1c1d

Browse files
committed
Updated return types tests
1 parent 10336df commit efe1c1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gui/base/src/test/java/it/angrybear/yagl/guis/DataGUITest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ void testOpenPage() {
126126

127127
@Test
128128
void testReturnTypes() {
129-
TestUtils.testReturnType(DataGUI.newGUI(9, c -> null), GUI.class, m -> m.getName().equals("copy"));
129+
TestUtils.testReturnType(DataGUI.newGUI(9, c -> null), PageableGUI.class, m -> {
130+
for (String s : Arrays.asList("copy", "setPages", "getPage"))
131+
if (s.equals(m.getName())) return true;
132+
return false;
133+
});
130134
}
131135

132136
private static Object[][] constructorParameters() {

0 commit comments

Comments
 (0)