コード例 #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]);
 }
コード例 #2
0
 /** Test method for {@link net.sb.io.UserDictionaryInformation#setLast()}. */
 @Test
 public void testSetLast() {
   instance.setLast(10);
   instance.writeToFile();
   assertEquals(10, instance.getLast());
 }