Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added Eclipse steps for junits

...

  1. Run --> Debug Configurations... Create a new JUnit configuration
    Image Added
  2. For the Test tab - Give the configuration a Name, select a Project and Test class, and you'll probably want to select the "Keep JUnit running..." option.
    Image Added
  3. For the Arguments tab - Press the Variables... button. This will allow us to define variables that can be shared across other Release/Debug Configurations within this workspace.
    Image Added
  4. For the Select Variable window - Press the Edit Variables... button.
    Image Added
  5. For the Preferences windows - Press New... to add two variables.
    Image Added
    Code Block
    
    Name = openjpa.trace
    Value = -Dopenjpa.Log=DefaultLevel=TRACE
    Description = Set OpenJPA logging to TRACE
    
    Image Added
    Code Block
    
    Name = connect.derby
    Value = -Dopenjpa.ConnectionDriverName=org.apache.derby.jdbc.EmbeddedDriver -Dopenjpa.ConnectionURL=jdbc:derby:target/database/openjpa-derby-database;create=true
    Description = Connection properties for Derby
    
    Image Added
  6. After the above are created and saved, add the new variables as VM Arguments.
    Code Block
    
    ${openjpa.trace}
    ${connect.derby}
    
    Image Added