예제 #1
0
  public void testGetAuConstructsProperAu()
      throws ArchivalUnit.ConfigurationException, MalformedURLException {
    Properties props = new Properties();
    props.setProperty(BASE_URL_KEY, "http://extra.shu.ac.uk/emls/");
    props.setProperty(VOL_KEY, "3");

    DefinableArchivalUnit au = makeAuFromProps(props);
    assertEquals(
        "Early Modern Literary Studies Plugin, Base URL http://extra.shu.ac.uk/emls/, Volume 3",
        au.getName());
  }
예제 #2
0
 protected ArchivalUnit createAu0(Configuration auConfig)
     throws ArchivalUnit.ConfigurationException {
   DefinableArchivalUnit au = new DefinableArchivalUnit(this, definitionMap);
   au.setConfiguration(auConfig);
   return au;
 }