public virtual void testSortQueue() { q.setAutomated(true); JDFQueue q2 = (JDFQueue) new JDFDoc("Queue").getRoot(); JDFQueueEntry qe = q2.appendQueueEntry(); qe.setQueueEntryID("qeNew"); qe.setQueueEntryStatus(EnumQueueEntryStatus.Waiting); qe.setPriority(42); // JDFQueueEntry qe2=(JDFQueueEntry) q.moveElement(qe, null); q.sortChildren(); Assert.AreEqual(2, q.getQueueEntryPos("qeNew")); }