Examples of SearchConditionListener


Examples of org.rssowl.core.persist.event.SearchConditionListener

   *
   * @throws Exception
   */
  @Test
  public void testVisited() throws Exception {
    SearchConditionListener listener = new SearchConditionListener() {
      public void entitiesAdded(Set<SearchConditionEvent> events) {
        fail("Unexpected event");
      }

      public void entitiesDeleted(Set<SearchConditionEvent> events) {
View Full Code Here

Examples of org.rssowl.core.persist.event.SearchConditionListener

   * @throws Exception
   */
  @Test
  @Ignore
  public void testSaveBinCausesNoUnwantedEvents() throws Exception {
    SearchConditionListener listener = null;
    try {
      IFolder root = fFactory.createFolder(null, null, "Root");

      IFolder childFolder = fFactory.createFolder(null, root, "Child");

      IFeed feed = fFactory.createFeed(null, new URI("feed"));
      DynamicDAO.save(feed);

      IBookMark bookmark = fFactory.createBookMark(null, root, new FeedLinkReference(feed.getLink()), "Bookmark");

      INewsBin bin = fFactory.createNewsBin(null, root, "Bin");

      ISearchMark searchMark = fFactory.createSearchMark(null, root, "Search");
      ISearchField field = fFactory.createSearchField(INews.TITLE, INews.class.getName());
      searchMark.addSearchCondition(fFactory.createSearchCondition(field, SearchSpecifier.CONTAINS, "Foo"));

      DynamicDAO.save(root);

      listener = new SearchConditionListener() {

        public void entitiesUpdated(Set<SearchConditionEvent> events) {
          fail("Unexpected Event");
        }

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.