@Test public void testGetQuestionLabelText() { wordPairDemo.getGameNames(); wordPairDemo.selectGame("Geography"); assertEquals(wordPairDemo.getQuestionLabelText(), "The capital is:"); }
@Test public void testGetGameNames() { assertTrue(wordPairDemo.getGameNames().length == 3); }
@Test public void testGetSelectedGameName() { wordPairDemo.getGameNames(); wordPairDemo.selectGame("Geography"); assertEquals(wordPairDemo.getSelectedGameName(), "Geography"); }
@Test public void testGetFileName() { wordPairDemo.getGameNames(); wordPairDemo.selectGame("Geography"); assertEquals(wordPairDemo.getFilename(), "testCities.txt"); }
@Test public void testGetLookUpButtonText() { wordPairDemo.getGameNames(); wordPairDemo.selectGame("Geography"); assertEquals(wordPairDemo.getLookupButtonText(), "Lookup answer"); }
@Test public void testGetAnswerButtonText() { wordPairDemo.getGameNames(); wordPairDemo.selectGame("Geography"); assertEquals(wordPairDemo.getAnswerButtonText(), "Guess"); }
@Test public void testGetQuestionButtonText() { wordPairDemo.getGameNames(); wordPairDemo.selectGame("Geography"); assertEquals(wordPairDemo.getQuestionButtonText(), "Get new question"); }
@Test public void testGetAnswerLabelText() { wordPairDemo.getGameNames(); wordPairDemo.selectGame("Geography"); assertEquals(wordPairDemo.getAnswerLabelText(), "What's the country?"); }