@Test public void testChgDEF() throws IOException, InterruptedException { Scanner sc = new Scanner(System.in); Name ok = new Name(); Player gram = new Warrior(ok); gram.chgDEF(1); assertTrue(gram.ex_def == 1); }