Package org.rssowl.core.persist

Examples of org.rssowl.core.persist.ICategory


    IFeed feed = fFactory.createFeed(null, new URI("http://www.feed.com/feed.xml"));
    INews news = createNews(feed, "IBM\u00f6\u00e4\u00fc\u00dfMicrosoft", "http://www.news.com/news1.html", State.READ);
    createNews(feed, "Foo", "http://www.news.com/news2.html", State.READ); //Used to validate count of results == 1
    createNews(feed, "Bar", "http://www.news.com/news3.html", State.READ); //Used to validate count of results == 1

    ICategory category = fFactory.createCategory(null, news);
    category.setName("Apple\u00f6\u00e4\u00fc\u00dfGoogle");

    DynamicDAO.save(feed);

    /* Wait for Indexer */
    waitForIndexer();
View Full Code Here


    IFeed feed = fFactory.createFeed(null, new URI("http://www.feed.com/feed.xml"));
    INews news = createNews(feed, "Foo", "http://www.news.com/news1.html", State.READ);
    createNews(feed, "Hello", "http://www.news.com/news2.html", State.READ); //Used to validate count of results == 1
    createNews(feed, "World", "http://www.news.com/news3.html", State.READ); //Used to validate count of results == 1

    ICategory category = fFactory.createCategory(null, news);
    category.setName("<Benjamin Wilhelm-Tello>");

    category = fFactory.createCategory(null, news);
    category.setName("<karakas>");

    DynamicDAO.save(feed);

    /* Wait for Indexer */
    waitForIndexer();
View Full Code Here

    IFeed feed = fFactory.createFeed(null, new URI("http://www.feed.com/feed.xml"));
    INews news = createNews(feed, "Foo", "http://www.news.com/news1.html", State.READ);
    createNews(feed, "Hello", "http://www.news.com/news2.html", State.READ); //Used to validate count of results == 1
    createNews(feed, "World", "http://www.news.com/news3.html", State.READ); //Used to validate count of results == 1

    ICategory category = fFactory.createCategory(null, news);
    category.setName("Benjamin Wilhelm-Tello");

    category = fFactory.createCategory(null, news);
    category.setName("IBM-Research");

    DynamicDAO.save(feed);

    /* Wait for Indexer */
    waitForIndexer();
View Full Code Here

    IFeed feed = fFactory.createFeed(null, new URI("http://www.feed.com/feed.xml"));
    INews news = createNews(feed, "Foo", "http://www.news.com/news1.html", State.READ);
    createNews(feed, "Hello", "http://www.news.com/news2.html", State.READ); //Used to validate count of results == 1
    createNews(feed, "World", "http://www.news.com/news3.html", State.READ); //Used to validate count of results == 1

    ICategory category = fFactory.createCategory(null, news);
    category.setName("Karakas");

    category = fFactory.createCategory(null, news);
    category.setName("Paris Hilton");

    DynamicDAO.save(feed);
    waitForIndexer();

    ISearchField allField = fFactory.createSearchField(IEntity.ALL_FIELDS, fNewsEntityName);
View Full Code Here

  /**
   * @throws Exception
   */
  @Test
  public void testIsCategoryChange() throws Exception {
    ICategory cat1 = new Category();
    cat1.setName("Cat1");

    ICategory cat2 = new Category();
    cat2.setName("Cat2");

    ICategory cat3 = new Category();
    cat3.setName("Cat3");

    IFeed feed = new Feed(new URI("http://www.link.com"));
    INews news1 = new News(null, feed, new Date());
    news1.addCategory(cat1);

View Full Code Here

      modelEvent = createNewsEvent((INews) entity, template, root, merged);
    } else if (entity instanceof IAttachment) {
      IAttachment attachment = (IAttachment) entity;
      modelEvent = new AttachmentEvent(attachment, root);
    } else if (entity instanceof ICategory) {
      ICategory category = (ICategory) entity;
      modelEvent = new CategoryEvent(category, root);
    } else if (entity instanceof IFeed) {
      IFeed feed = (IFeed) entity;
      modelEvent = new FeedEvent(feed, root);
    } else if (entity instanceof IPerson) {
View Full Code Here

    assertFalse("Unexpected Folder Event", bool[0]);
  }

  private ICategory createFeedCategory() throws PersistenceException {
    IFeed feed = DynamicDAO.save(createFeed());
    ICategory category = fTypesFactory.createCategory(null, feed);
    category.setName("categoryName");
    category.setDomain("some/domain");
    category.setProperty("one_property", "value");
    return category;
  }
View Full Code Here

  }

  private ICategory createNewsCategory() throws PersistenceException {
    IFeed feed = DynamicDAO.save(createFeed());
    INews news = DynamicDAO.save(createNews(feed));
    ICategory category = fTypesFactory.createCategory(null, news);
    category.setName("categoryName");
    category.setDomain("some/domain");
    category.setProperty("one_property", "value");
    return category;
  }
View Full Code Here

   * exception is thrown.
   */
  @Test
  public void testAddAndDeleteFeedCategory() {
    try {
      ICategory category = createFeedCategory();
      ICategory savedCategory = DynamicDAO.save(category);
      DynamicDAO.delete(savedCategory);
    } catch (PersistenceException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

   * exception is thrown.
   */
  @Test
  public void testAddAndDeleteNewsCategory() {
    try {
      ICategory category = createNewsCategory();
      ICategory savedCategory = DynamicDAO.save(category);
      DynamicDAO.delete(savedCategory);
    } catch (PersistenceException e) {
      fail(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of org.rssowl.core.persist.ICategory

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.