示例#1
0
 @Test(expected = IllegalArgumentException.class)
 public void testInvalidLanguageIllegalArgumentException() {
   Languages.getInstance("thereIsNoSuchLanguage");
 }
示例#2
0
 @Test(expected = IllegalStateException.class)
 public void testInvalidLangIllegalStateException() {
   Lang.loadFromResource("thisIsAMadeUpResourceName", Languages.getInstance(NameType.GENERIC));
 }