@Test(timeout = 10000) public void getChoice_beforeStart() throws Exception { new Thread(() -> { try { assertChoiceRange(test.getChoice()); } catch (InterruptedException e) { e.printStackTrace(); } }).start(); new Thread(test).start(); }
public int getChoice() throws InterruptedException { return -1; }
Player implements Runnable { public int getChoice() throws InterruptedException { return -1; } }
Player implements Runnable { public int getChoice() throws InterruptedException { return -1; }  }
Player implements Runnable { public int getChoice() throws InterruptedException { return -1; }  @Override void run(); int getChoice(); }
Player implements Runnable { public int getChoice() throws InterruptedException { return -1; }  @Override void run(); int getChoice();  }