Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Application Testing Guide
Previous Page Home Next Page

Creating a JUnit test manually

TPTP JUnit Tests can be created manually or as a result of importing existing JUnit tests outside TPTP into a TPTP JUnit Test. They should be created manually if they are to exploit the TPTP JUnit Test behavior feature.

Note that, before creating a JUnit test, a Java project must exist.

  1. Select File > New > Other.
  2. Expand Test. Select TPTP JUnit Test.
  3. Click Next to launch the New JUnit Test Definition dialog. Identify the Source folder (javaProject/src), the Package (junit.samples), and the name to be assigned to the JUnit Test source code (JUnit_src).
  4. Click Next. The New JUnit Test Definition dialog launches.
  5. Enter the parent folder (javaProject/src/junit/samples) and Name (JUnit_src).
  6. Click Next and provide a description of the JUnit test definition.
  7. Click on Finish.
  8. The Confirm Open Editor dialog may appear (see the Window > Preferences... > Test > Open Editor preference), confirming if the new JUnit test suite is to be opened in the JUnit Test editor.

Note that the second and third pages of the wizard are optional (that is, you can finish the wizard at the first page). Also, the difference between the information requested in page 1 and page 2 is as follows: the first page asks for the name and location of the source code, while the second one asks for the name and location of the TPTP Test (the model). By default, they are identical.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire