I copied this assertion out of a JUnit recipe book, but it seems that getTextAtXpath isn't part of the OL XPath API. What's the OpenLaszlo equivalent?

<canvas>
<include href="lzunit"/>
<simplelayout axis="y" spacing="10"/>

  <dataset name="myData">
    <myXML>
      <person>
        <firstName>Homer</firstName>
        <lastName>Simpson</lastName>
      </person>
    </myXML>
  </dataset>

<TestSuite>
        <TestCase>
                <method name="testXML">
assertEquals(myData.getTextAtXpath("myXML/person/firstName"), "Homer");
                </method>
        </TestCase>
</TestSuite>

</canvas>

--
assertEquals(Frisco Del Rosario, OpenLaszlo tester)

Reply via email to