Ejemplo n.º 1
0
        public virtual void testSourceResource()
        {
            JDFDoc          doc = JDFTestCaseBase.creatXMDoc();
            JDFNode         n   = doc.getJDFRoot();
            JDFExposedMedia xm  = (JDFExposedMedia)n.getMatchingResource("ExposedMedia", JDFNode.EnumProcessUsage.AnyInput, null, 0);
            JDFNodeInfo     ni  = (JDFNodeInfo)n.getMatchingResource("NodeInfo", JDFNode.EnumProcessUsage.AnyInput, null, 0);

            xm.createSourceResource(ni);
            Assert.AreEqual(ni, xm.getSourceResource(0).getLinkRoot(), "");
            Assert.AreEqual(ni, xm.getSourceResource(0).getTarget(), "");
            Assert.AreEqual(ni.Name, xm.getSourceResource(0).getSourcefNodeName());
            JDFSourceResource sr = xm.appendSourceResource();

            Assert.IsNull(sr.getLinkRoot());
            Assert.IsNull(sr.getTarget());
            Assert.IsNull(sr.getSourceLocalName());
        }