@Test public void getIntInputException() throws RuntimeException { exception.expect(RuntimeException.class); exception.expectMessage("The input value must be a int number."); InputUtils.getIntInput("Doesn't work in this way", 0); }
@Test public void getIntInputDefault() { int testInt = InputUtils.getIntInput("", 1024); assertEquals(1024, testInt); }
@Test public void getIntInput() { int testInt = InputUtils.getIntInput("4096", 1024); assertEquals(4096, testInt); }