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