Package ch.entwine.weblounge.bridge.oaipmh.util

Examples of ch.entwine.weblounge.bridge.oaipmh.util.PersistenceEnv


* Test persistence of {@link LastHarvested}.
*/
public class LastHarvestedTest {
  @Test
  public void testLastHarvested() {
    PersistenceEnv penv = newPenv();
    assertEquals(Option.none(), LastHarvested.getLastHarvestDate(penv, "bla"));
    DateTime now = new DateTime();
    Date a = now.toDate();
    // save
    LastHarvested.update(penv, new LastHarvested("url-1", a));
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.bridge.oaipmh.util.PersistenceEnv

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.