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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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);