示例#1
0
        public virtual void testAppendValidElement()
        {
            JDFDoc    doc = new JDFDoc(ElementName.JMF);
            JDFJMF    jmf = doc.getJMFRoot();
            JDFSignal sig = (JDFSignal)jmf.appendMessageElement(EnumFamily.Signal,EnumType.UpdateJDF);

            Assert.IsNotNull(sig.appendValidElement(ElementName.UPDATEJDFCMDPARAMS,null));
        }
示例#2
0
        public virtual void testGetInvalidAttributes()
        {
            JDFDoc    doc = new JDFDoc(ElementName.JMF);
            JDFJMF    jmf = doc.getJMFRoot();
            JDFSignal sig = (JDFSignal)jmf.appendMessageElement(EnumFamily.Signal,EnumType.UpdateJDF);

            Assert.IsNotNull(sig.appendValidElement(ElementName.UPDATEJDFCMDPARAMS,null));
            Assert.IsFalse(sig.getInvalidAttributes(EnumValidationLevel.Complete,true,999).Contains(AttributeName.XSITYPE));
            sig.setAttribute("Type",EnumType.AbortQueueEntry.getName());
            Assert.IsTrue(sig.getInvalidAttributes(EnumValidationLevel.Complete,true,999).Contains(AttributeName.XSITYPE));
        }