/** Test method for {@link net.sb.io.UserDictionaryInformation#setStates()}. */ @Test public void testSetStates() { words = instance.readDictionary(); instance.getStates(); instance.setState(2, 1); instance.writeToFile(); instance = new UserDictionaryInformation("dictionary", "a", "wthtest"); assertEquals(1, instance.getStates()[2]); }
/** Test method for {@link net.sb.io.UserDictionaryInformation#setLast()}. */ @Test public void testSetLast() { instance.setLast(10); instance.writeToFile(); assertEquals(10, instance.getLast()); }
/** Test method for {@link net.sb.io.UserDictionaryInformation#getLast()}. */ @Test public void testGetLast() { assertEquals(-1, instance.getLast()); }
/** Test method for {@link net.sb.io.UserDictionaryInformation#getFinish()}. */ @Test public void testGetFinish() { assertEquals(0, instance.getFinish()); }
/** Test method for {@link net.sb.io.UserDictionaryInformation#getWrong()}. */ @Test public void testGetWrong() { assertEquals(0, instance.getWrong()); }
/** Test method for {@link net.sb.io.UserDictionaryInformation#getRight()}. */ @Test public void testGetRight() { assertEquals(0, instance.getRight()); }
/** Test method for {@link net.sb.io.UserDictionaryInformation#readDictionary()}. */ @Test public void testReadDictionary() { words = instance.readDictionary(); assertEquals(words.get(0)[0], "abandon"); assertEquals(words.get(1)[0], "abandonment"); }