Running the Legacy LRG
Early in its existance, this product was tested with an in-house testing framework. A large number of tests are still available through this test framework. Testing is gradually being migrated to frameworks such as JUnit, but the GUI tool available in the legacy framework is still quite useful for testing. The code for this test framework is stored in the eclipselink.core.test project. Here is how to run it:
- Run the build.xml in the base directory of the ecliposelink.core.test project as an ant script. This will copy some xml files to your classpath.
- Create a Java Application run target on the eclipselink.core.test project - I'll call it Testing Browser
- Use org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame as the main class
- Add "-Xmx256m" as a VM argument
- Add the following to the classpath: (note these are listed by category and you may be able to run subsets of the tests without certain categories)
- your JDBC driver of choice
- Oracle Extensions
- jars required to compile eclipselink.extension.oracle - aqapi.jar, sdoapi.jar, dms.jar, xdb.jar, xml.jar, xmlparserv2.jar
- a JAVA_TOOLS_LIB variable that points to the tools jar in your java installation
- Generated classes
- Add the base directory of the eclipselink.core.test project. For some reason, this is where all java output goes. We output some java files and then compile them. They will go there.
- Run the the "Testing Browser" run target
- Input you DB login information. You can do this by selecting a value from the "Quick Login" drop box and then then edit the form on the right side of the GUI with any inforamtion that is different from what is already populated
- Run either the SRGTestModel or the LRGTestModel listed on the right side of the GUI by selecting it and then clicking the "Run Test" button.