コード例 #1
0
 @Test
 public void loadNonExistentUntypedClass() {
   try {
     propertiesNotFoundConfig.getNonExistentUntypedClass();
     fail();
   } catch (ConfigurationException cause) {
     assertEquals(ClassNotFoundException.class, cause.getCause().getClass());
   }
 }
コード例 #2
0
 @Test
 public void loadUntypedClassFromEmptyKey() {
   try {
     propertiesEmptyFieldConfig.getEmptyUntypedClass();
     fail();
   } catch (ConfigurationException cause) {
     assertEquals(ClassNotFoundException.class, cause.getCause().getClass());
   }
 }