コード例 #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));
 }