Ejemplo n.º 1
0
 /** 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]);
 }
Ejemplo n.º 2
0
 /** Test method for {@link net.sb.io.UserDictionaryInformation#setLast()}. */
 @Test
 public void testSetLast() {
   instance.setLast(10);
   instance.writeToFile();
   assertEquals(10, instance.getLast());
 }
Ejemplo n.º 3
0
 /** Test method for {@link net.sb.io.UserDictionaryInformation#getLast()}. */
 @Test
 public void testGetLast() {
   assertEquals(-1, instance.getLast());
 }
Ejemplo n.º 4
0
 /** Test method for {@link net.sb.io.UserDictionaryInformation#getFinish()}. */
 @Test
 public void testGetFinish() {
   assertEquals(0, instance.getFinish());
 }
Ejemplo n.º 5
0
 /** Test method for {@link net.sb.io.UserDictionaryInformation#getWrong()}. */
 @Test
 public void testGetWrong() {
   assertEquals(0, instance.getWrong());
 }
Ejemplo n.º 6
0
 /** Test method for {@link net.sb.io.UserDictionaryInformation#getRight()}. */
 @Test
 public void testGetRight() {
   assertEquals(0, instance.getRight());
 }
Ejemplo n.º 7
0
 /** 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");
 }