} catch (IllegalArgumentException e) {
}
}
public void test_gettingAll() {
LocalizedTextsContainerImple uit = new LocalizedTextsContainerImple("FI", "EN");
uit.setText("foo", "bar", "EN");
uit.setText("dog", "cat", "EN");
uit.setText("foo", "tanko", "FI");
uit.setText("dog", "kissa", "FI");
Map<String, String> fi = uit.getAllTexts("FI");
Map<String, String> en = uit.getAllTexts("EN");
try {
uit.getAllTexts("UN");
fail("Should have thrown an exception");
} catch (IllegalArgumentException e) {
}
assertEquals("bar", en.get("foo"));
assertEquals("cat", en.get("dog"));