Package de.nava.informa.utils.toolkit

Examples of de.nava.informa.utils.toolkit.ChannelRecord


   *         second.
   * @throws ClassCastException if the arguments' types prevent them from
   *                            being compared by this Comparator.
   */
  public final int compare(Object o1, Object o2) {
    final ChannelRecord r1 = (ChannelRecord) o1;
    final ChannelRecord r2 = (ChannelRecord) o2;

    final int p1 = r1.getPriority();
    final int p2 = r2.getPriority();

    int result = 0;

    if (p1 < p2) {
      result = -1;
View Full Code Here


      final ChannelIF cTemp = pm.createChannel("temp", getTestURL());
      final ItemIF item1 = pm.createItem(cTemp, "wanted");
      pm.createItem(cTemp, "unwanted");

      // Check items in temp agains main channel.
      ChannelRecord rec = new ChannelRecord(cMain, 0, 0);
      worker.checkItems(cTemp, rec);

      // Check results.
      assertEquals(1, cMain.getItems().size());
      assertEquals(item1, cMain.getItems().toArray()[0]);
View Full Code Here

      // Add duplicate "wanted" item to main channel.
      final ItemIF item3 = pm.createItem(cMain, "wanted");

      // Check items in temp agains main channel.
      worker.checkItems(cTemp, new ChannelRecord(cMain, 0, 0));

      // Check results.
      assertEquals(1, cMain.getItems().size());
      assertEquals(item3, cMain.getItems().toArray()[0]);
    } catch (PersistenceManagerException e) {
View Full Code Here

TOP

Related Classes of de.nava.informa.utils.toolkit.ChannelRecord

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.