public virtual void testGetLinkRootJMF() { JDFDoc d = new JDFDoc("JMF"); JDFJMF jmf = d.getJMFRoot(); jmf.setSenderID("Elvis"); JDFCommand c = jmf.appendCommand(); c.setType("PipePull"); JDFPipeParams pp = c.appendPipeParams(); pp.setAttribute(AttributeName.PIPEID, "foo", null); JDFRunList ruli = (JDFRunList)pp.appendResource(ElementName.RUNLIST); JDFResourceLink rl = pp.appendResourceLink("RunListLink", true); rl.setrRef(ruli.getID()); Assert.IsTrue(jmf.isValid(EnumValidationLevel.Complete), "valid param"); Assert.AreEqual(rl.getTarget(), ruli); }