UnboundTerminal extends AbstractTerminal { @Override public int getch() { this.refresh(); return BlackenKeys.NO_KEY; } UnboundTerminal(); static UnboundTerminal initialize(String name, int rows, int cols, String font); @Override void disableEventNotice(BlackenEventType event); @Override void disableEventNotices(); @Override void enableEventNotice(BlackenEventType event); @Override @Deprecated void enableEventNotices(EnumSet<BlackenEventType> events); @Override int getch(); @Override int getch(int millis); @Override boolean keyWaiting(); @Override EnumSet<BlackenModifier> getLockingStates(); @Override BlackenMouseEvent getmouse(); @Override String getString(int y, int x, int length); @Override BlackenWindowEvent getwindow(); @Override void set(int y, int x, TerminalCellLike tcell); @Override boolean setFullScreen(boolean state); @Override boolean getFullScreen(); @Override void setSize(TerminalScreenSize size); @Override void refresh(int y, int x); @Override void setEventNotices(EnumSet<BlackenEventType> events); @Override EnumSet<BlackenEventType> getEventNotices(); @Override BlackenImageLoader getImageLoader();  }
@Test @Covers("public int getch()") public void getch() { assertEquals(-1, terminal.getCursorX()); assertEquals(-1, terminal.getCursorY()); assertEquals(BlackenKeys.NO_KEY, terminal.getch()); assertEquals(-1, terminal.getCursorX()); assertEquals(-1, terminal.getCursorY()); }
@Test @Covers("public int getch(int)") public void getch_int() { assertEquals(-1, terminal.getCursorX()); assertEquals(-1, terminal.getCursorY()); assertEquals(BlackenKeys.NO_KEY, terminal.getch(1000)); assertEquals(-1, terminal.getCursorX()); assertEquals(-1, terminal.getCursorY()); }