예제 #1
0
 /** Find default license. */
 @Test
 public void findDefaultLicense() {
   final String licenseDefId = properties.getDefaultLicense();
   final License lic = finder.findByShortName(licenseDefId);
   assertNotNull(lic);
   assertEquals(licenseDef.getShortName(), lic.getShortName());
   assertEquals(licenseDef.getLongName(), lic.getLongName());
 }
예제 #2
0
 /** Find by id. */
 @Test
 public void findById() {
   final License lic = finder.findByShortName(license1.getShortName());
   assertNotNull(lic);
   assertEquals(license1.getShortName(), lic.getShortName());
   assertEquals(license1.getLongName(), lic.getLongName());
 }