public virtual void testAddEntry() { JDFResponse resp = qsp.addEntry(theQueue, null); Assert.AreEqual(0, resp.getReturnCode()); theQueue = resp.getQueue(0); Assert.AreEqual(theQueue.getQueueEntry(0).getQueueEntryStatus(), resp.getQueueEntry(0).getQueueEntryStatus()); Assert.AreEqual(theQueue.getQueueEntry(0).getQueueEntryID(), resp.getQueueEntry(0).getQueueEntryID()); Assert.AreNotEqual("", theQueue.getQueueEntry(0).getQueueEntryID()); Assert.AreEqual(1, theQueue.numEntries(null)); Assert.AreEqual(1, theQueue.numEntries(EnumQueueEntryStatus.Waiting)); qsp.setHold(true); JDFJMF jmfNew = new JDFDoc("JMF").getJMFRoot(); resp = qsp.addEntry(theQueue, jmfNew); Assert.AreEqual(jmfNew.getResponse(0), resp); Assert.AreEqual(2, theQueue.numEntries(null)); Assert.AreEqual(1, theQueue.numEntries(EnumQueueEntryStatus.Waiting)); Assert.AreEqual(1, theQueue.numEntries(EnumQueueEntryStatus.Held)); Assert.AreNotEqual(theQueue.getQueueEntry(0).getQueueEntryID(), theQueue.getQueueEntry(1).getQueueEntryID()); }