Examples of removeLabel()


Examples of org.rssowl.core.persist.INews.removeLabel()

    Controller.getDefault().reload(testBm, null, null);

    assertEquals(5, testNews.getLabels().size());

    testNews.removeLabel(testNews.getLabels().iterator().next());
    DynamicDAO.save(testFeed);

    assertEquals(4, testNews.getLabels().size());

    Controller.getDefault().reload(testBm, null, null);
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.removeLabel()

              /* Item Exists */
              if (news != null && news.isVisible()) {
                if (SyncUtils.isSynchronized(news) && news.getLabels().contains(label)) {
                  SyncItem syncItem = SyncItem.toSyncItem(news);
                  syncItem.addLabel(newName);
                  syncItem.removeLabel(oldName);
                  syncItems.add(syncItem);
                }
              }

              /* Index Issue */
 
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.removeLabel()

    assertFalse(news1.isFlagged());
    assertTrue(news1.getLabels().isEmpty());

    sync.addLabel("Foo");
    sync.addLabel("Hello World");
    sync.removeLabel("Bar");
    sync.applyTo(news1);

    assertTrue(news1.getState() == INews.State.NEW);
    assertNull(news1.getProperty(SyncUtils.GOOGLE_MARKED_READ));
    assertNotNull(news1.getProperty(SyncUtils.GOOGLE_MARKED_UNREAD));
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.removeLabel()

    String[] labels = (String[]) labelsObj;
    assertEquals(2, labels.length);
    assertTrue(labels[0].equals("Foo") || labels[1].equals("Foo"));
    assertTrue(labels[0].equals("Hello World") || labels[1].equals("Hello World"));

    sync.removeLabel("Foo");
    sync.removeLabel("Hello World");
    sync.addLabel("Bar");
    sync.applyTo(news1);

    assertTrue(news1.getState() == INews.State.NEW);
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.removeLabel()

    assertEquals(2, labels.length);
    assertTrue(labels[0].equals("Foo") || labels[1].equals("Foo"));
    assertTrue(labels[0].equals("Hello World") || labels[1].equals("Hello World"));

    sync.removeLabel("Foo");
    sync.removeLabel("Hello World");
    sync.addLabel("Bar");
    sync.applyTo(news1);

    assertTrue(news1.getState() == INews.State.NEW);
    assertNull(news1.getProperty(SyncUtils.GOOGLE_MARKED_READ));
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.removeLabel()

    item2.addLabel("Bar");
    assertFalse(item1.isEquivalent(item2));
    item1.addLabel("Bar");
    assertTrue(item1.isEquivalent(item2));

    item2.removeLabel("Hello");
    assertFalse(item1.isEquivalent(item2));
    item1.removeLabel("Hello");
    assertTrue(item1.isEquivalent(item2));

    item2.removeLabel("World");
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.removeLabel()

    item2.removeLabel("Hello");
    assertFalse(item1.isEquivalent(item2));
    item1.removeLabel("Hello");
    assertTrue(item1.isEquivalent(item2));

    item2.removeLabel("World");
    assertFalse(item1.isEquivalent(item2));
    item1.removeLabel("World");
    assertTrue(item1.isEquivalent(item2));
  }
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.removeLabel()

    item1.setMarkedRead();

    SyncItem item2 = SyncItem.toSyncItem(news2);
    item2.addLabel("Foo");
    item2.addLabel("Bar");
    item2.removeLabel("Hello World");

    manager.addUncommitted(Arrays.asList(item1, item2));

    assertTrue(manager.hasUncommittedItems());
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.removeLabel()

    /* Test removing starred state and labels */
    syncItems = new ArrayList<SyncItem>();
    for (INews news : newsToSync) {
      SyncItem item = SyncItem.toSyncItem(news);
      item.setUnStarred();
      item.removeLabel("Testing");
      item.removeLabel("Hello World");
      syncItems.add(item);
    }

    service.testSync(syncItems);
View Full Code Here

Examples of org.rssowl.core.util.SyncItem.removeLabel()

    syncItems = new ArrayList<SyncItem>();
    for (INews news : newsToSync) {
      SyncItem item = SyncItem.toSyncItem(news);
      item.setUnStarred();
      item.removeLabel("Testing");
      item.removeLabel("Hello World");
      syncItems.add(item);
    }

    service.testSync(syncItems);
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.