Menu

To find a component using findNamedComponent

Anonymous
2003-07-23
2003-10-31
  • Anonymous

    Anonymous - 2003-07-23

    I want to the alternative way to find a component object if setName() method was not used. I had project which is complete now and didn't use setName() method. I am doing JUnit testing now. Getting error in testcases. Please answer this as it is very urgent now. Thanks for your help in advance.

     
    • Kevin L Wilson

      Kevin L Wilson - 2003-10-31

      See the various classes in the junit.extensions.jfcunit.finder package. ComponentFinder may work for most of your cases, this one is based upon the Class and a index.

      You can also define your own Finder and call
      TestHelper.find(finder, container, index);

       

Log in to post a comment.