@Test public void testInvalidOption() { Session session = Session.createTestSession(); session.handleInput("bogus"); assertEquals(Constants.invalidOptionString, session.history(-2)); assertTrue(session.lastMessage().startsWith(Constants.mainMenuString)); }
@Test public void testQuitOption() { Session session = Session.createTestSession(); session.handleInput("quit"); assertEquals(Constants.quitString, session.lastMessage()); }