Example #1
0
        public virtual void testUpdateJDF()
        {
            JDFDoc                doc     = new JDFDoc(ElementName.JMF);
            JDFJMF                jmf     = doc.getJMFRoot();
            JDFCommand            command = (JDFCommand)jmf.appendMessageElement(EnumFamily.Command,EnumType.UpdateJDF);
            JDFUpdateJDFCmdParams ujn     = command.appendUpdateJDFCmdParams();

            Assert.IsNotNull(ujn);
            JDFUpdateJDFCmdParams ujn2 = command.getUpdateJDFCmdParams();

            Assert.AreEqual(ujn,ujn2);
            ujn2 = command.getCreateUpdateJDFCmdParams();
            Assert.AreEqual(ujn,ujn2);
            try
            {
                command.appendUpdateJDFCmdParams();
                Assert.Fail("oops");
            }
            catch (JDFException)
            {
                // nop
            }
        }