public void test_it_only_accepts_parameters_that_can_find_a_language_file() throws Exception {
String folder = TestConfig.getConfig().languagefileFolder();
try {
new LanguageFileReader("doesnotexist", "doesnotexist", "FI");
fail("Should fail");
} catch (FileNotFoundException e) {
}
try {
new LanguageFileReader(folder, "doesnotexist", "FI");
fail("Should fail");
} catch (FileNotFoundException e) {
}
try {
new LanguageFileReader(folder, "langfile_", "FI");
} catch (FileNotFoundException e) {
fail("Should not fail: " + e);
}
try {
new LanguageFileReader(folder, "langfile_", "FI", "EN");
} catch (FileNotFoundException e) {
fail("Should not fail: " + e);
}
}