Skip to main content
Jump to: navigation, search


< EclipseLink‎ | Development‎ | Testing
Revision as of 11:48, 16 November 2007 by (Talk | contribs) (Running the Legacy LRG)

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:

  1. Run the process.resource target of 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.
  2. Create a Java Application run target on the eclipselink.core.test project - I'll call it Testing Browser
  3. Use org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame as the main class
  4. Add "-Xmx256m${workspace_loc:eclipselink.core.test}/resource/all.permissions" to the VM arguments section of the Arguments tab
  5. 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)
    1. JDBC
      1. your JDBC driver of choice
    2. JPA
      1. jpa.core
      2. jpa.test
    3. Oracle Extensions
      3. jars required to compile - aqapi.jar, sdoapi.jar, dms.jar, xdb.jar, xml.jar, xmlparserv2.jar
    4. Java
      1. a JAVA_TOOLS_LIB variable that points to the tools jar in your java installation
    5. Generated classes
      1. 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.
  6. Run the the "Testing Browser" run target
  7. 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 information that is different from what is already populated
  8. 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.

Back to the top