Exemplo n.º 1
0
        public override void setUp()
        {
            base.setUp();
            JDFElement.setLongID(false);
            doc    = new JDFDoc(ElementName.JMF);
            jmf    = doc.getJMFRoot();
            signal = jmf.appendSignal();
            jmf.setSenderID("DeviceSenderID");

            signal.setType(EnumType.Status);
            sqp = signal.appendStatusQuParams();
            sqp.setJobID("JobID");
            sqp.setJobPartID("JobPartID");
        }
Exemplo n.º 2
0
        public virtual void testJobPhase()
        {
            JDFDoc    doc = new JDFDoc(ElementName.JMF);
            JDFJMF    jmf = doc.getJMFRoot();
            JDFSignal s   = (JDFSignal)jmf.appendMessageElement(EnumFamily.Signal, null);

            s.setType("Status");
            JDFStatusQuParams sqp = s.appendStatusQuParams();

            sqp.setDeviceDetails(EnumDeviceDetails.Brief);
            JDFDeviceInfo di = s.appendDeviceInfo();
            JDFJobPhase   jp = di.appendJobPhase();

            Assert.AreEqual(di.getJobPhase(0), jp);
            jp = (JDFJobPhase)di.appendElement("jdf:JobPhase", JDFElement.getSchemaURL());
            Assert.AreEqual(di.getJobPhase(1), jp);
            Assert.IsNull(di.getJobPhase(2));
            jp.appendNode();
            Assert.IsTrue(jp.isValid(EnumValidationLevel.Incomplete));
        }