Пример #1
0
 public void testGetAuNullConfig() throws ArchivalUnit.ConfigurationException {
   try {
     plugin.configureAu(null, null);
     fail("Didn't throw ArchivalUnit.ConfigurationException");
   } catch (ArchivalUnit.ConfigurationException e) {
   }
 }
Пример #2
0
 public void testGetAuConfigProperties() {
   for (Iterator iter = plugin.getLocalAuConfigDescrs().iterator(); iter.hasNext(); ) {
     ConfigParamDescr desc = (ConfigParamDescr) iter.next();
     if (desc.equals(ConfigParamDescr.BASE_URL)) {
       continue;
     }
     if (desc.equals(ConfigParamDescr.VOLUME_NUMBER)) {
       continue;
     }
     if ("issues".equals(desc.getKey())) {
       assertEquals(ConfigParamDescr.TYPE_SET, desc.getType());
       assertFalse(desc.isDefinitional());
       continue;
     }
     fail("Unexpected config param: " + desc.getKey());
   }
 }
Пример #3
0
 public void testGetPluginId() {
   assertEquals("org.lockss.plugin.emls.EmlsPlugin", plugin.getPluginId());
 }
Пример #4
0
 private DefinableArchivalUnit makeAuFromProps(Properties props)
     throws ArchivalUnit.ConfigurationException {
   Configuration config = ConfigurationUtil.fromProps(props);
   return (DefinableArchivalUnit) plugin.configureAu(config, null);
 }
Пример #5
0
 public void setUp() throws Exception {
   super.setUp();
   plugin = new DefinablePlugin();
   plugin.initPlugin(getMockLockssDaemon(), "org.lockss.plugin.emls.EmlsPlugin");
 }