Package org.projectforge.core

Examples of org.projectforge.core.SimpleHistoryEntry


    }

    List<SimpleHistoryEntry> list = addressDao.getSimpleHistoryEntries(a1);
    assertEquals(5, list.size());
    for (int i = 0; i < 2; i++) {
      SimpleHistoryEntry se = list.get(i);
      if ("name".equals(se.getPropertyName()) == true) {
        assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "name", String.class, "History 2", "History test");
      } else {
        assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "task", TaskDO.class, getTask("1.2").getId(), getTask("1.1").getId());
      }
    }
    SimpleHistoryEntry se = list.get(2);
    assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "task", TaskDO.class, getTask("1.1").getId(), getTask("1.2").getId());
    se = list.get(3);
    assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "name", String.class, "History test", "History 2");
    se = list.get(4);
    assertSimpleHistoryEntry(se, user, HistoryEntryType.INSERT, null, null, null, null);
View Full Code Here


    }

    List<SimpleHistoryEntry> list = contactDao.getSimpleHistoryEntries(a1);
    assertEquals(5, list.size());
    for (int i = 0; i < 2; i++) {
      final SimpleHistoryEntry se = list.get(i);
      if ("name".equals(se.getPropertyName()) == true) {
        assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "name", String.class, "History 2", "History test");
      } else {
        assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "task", TaskDO.class, getTask("1.2").getId(), getTask("1.1").getId());
      }
    }
    SimpleHistoryEntry se = list.get(2);
    assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "task", TaskDO.class, getTask("1.1").getId(), getTask("1.2").getId());
    se = list.get(3);
    assertSimpleHistoryEntry(se, user, HistoryEntryType.UPDATE, "name", String.class, "History test", "History 2");
    se = list.get(4);
    assertSimpleHistoryEntry(se, user, HistoryEntryType.INSERT, null, null, null, null);
View Full Code Here

TOP

Related Classes of org.projectforge.core.SimpleHistoryEntry

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.