Package org.apache.oodt.cas.crawl.action

Examples of org.apache.oodt.cas.crawl.action.CrawlerAction.validate()


      // Test case invalid action.
      ProductCrawler pc = createDummyCrawler();
      pc.actionRepo = createMock(CrawlerActionRepo.class);

      CrawlerAction action = createMock(CrawlerAction.class);
      action.validate();
      expectLastCall().andThrow(new CrawlerActionException());
      expect(action.getId()).andReturn("ActionId");
      replay(action);

      expect(pc.actionRepo.getActions()).andReturn(
View Full Code Here


      pc = createDummyCrawler();
      pc.actionRepo = createMock(CrawlerActionRepo.class);
      action = createMock(CrawlerAction.class);
      expect(pc.actionRepo.getActions()).andReturn(
            Sets.newHashSet(action));
      action.validate();
      replay(pc.actionRepo);
      replay(action);
      pc.validateActions();
      verify(pc.actionRepo);
      verify(action);
View Full Code Here

      // Test case invalid action.
      ProductCrawler pc = createDummyCrawler();
      pc.actionRepo = createMock(CrawlerActionRepo.class);

      CrawlerAction action = createMock(CrawlerAction.class);
      action.validate();
      expectLastCall().andThrow(new CrawlerActionException());
      expect(action.getId()).andReturn("ActionId");
      replay(action);

      expect(pc.actionRepo.getActions()).andReturn(
View Full Code Here

      pc = createDummyCrawler();
      pc.actionRepo = createMock(CrawlerActionRepo.class);
      action = createMock(CrawlerAction.class);
      expect(pc.actionRepo.getActions()).andReturn(
            Sets.newHashSet(action));
      action.validate();
      replay(pc.actionRepo);
      replay(action);
      pc.validateActions();
      verify(pc.actionRepo);
      verify(action);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.