UnboundTerminal extends AbstractTerminal { static public UnboundTerminal initialize(String name, int rows, int cols, String font) { UnboundTerminal terminal = new UnboundTerminal(); terminal.init(name, rows, cols, font); return terminal; } 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 static UnboundTerminal initialize(String,int,int,String)") public void initialize() { UnboundTerminal term = UnboundTerminal.initialize("Java", NUM_ROWS, NUM_COLS, "Monospace"); assertNotNull(term.getGrid()); assertEquals(NUM_ROWS, term.getHeight()); assertEquals(NUM_COLS, term.getWidth()); assertEquals(-1, term.getCursorX()); assertEquals(-1, term.getCursorY()); }