name = "S" + SPECIAL_CHARS; path = "test/testC.dicml"; expResult = true; result = instance.importDictionary(path, name); assertEquals(expResult, result);  instance.activateDictionary(name); r = instance.getEntry("C"); if(r.length == 0) fail("the imported lemma \"C\" was not found");   name = "Sön\"derberg"; expResult = false; result = instance.importDictionary(path, name); assertEquals(expResult, result);
  public void testImportDictionary() {    System.out.println("importDictionary");            // test for a not existing file    String path = "not existing!!!";    String name = "";    SQLiteProvider instance = new SQLiteProvider("owl.db");        boolean expResult = false;    boolean result = instance.importDictionary(path, name);    assertEquals(expResult, result);        // test on invalid parameters 1    path = null;    name = "";        expResult = false;    result = instance.importDictionary(path, name);    assertEquals(expResult, result);        // test on invalid parameters 2    path = "";    name = null;        expResult = false;    result = instance.importDictionary(path, name);    assertEquals(expResult, result);            // test on real existing file    path = "test/testAB.dicml";    name = "AB";        expResult = true;    result = instance.importDictionary(path, name);    assertEquals(expResult, result);        // check wether import was successfull    instance.activateDictionary("AB");    String[][] r = instance.getEntry("A");    if(r.length == 0)      fail("the imported lemma \"A\" was not found");        r = instance.getEntry("b");    if(r.length == 0)      fail("the imported lemma \"b\" was not found");      }