|
Lines 1-64
Link Here
|
| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> |
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
|
2 |
<!DOCTYPE html |
| 3 |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 4 |
<html lang="en-us" xml:lang="en-us"> |
| 2 |
<!-- |
5 |
<!-- |
| 3 |
/********************************************************************** |
6 |
/********************************************************************** |
| 4 |
* Copyright (c) 2005, 2008 Scapa Technologies. |
7 |
* Copyright (c) 2008 IBM Corporation. |
| 5 |
* All rights reserved. This content |
8 |
* All rights reserved. This content |
| 6 |
* is made available under the terms of the Eclipse Public License v1.0 |
9 |
* is made available under the terms of the Eclipse Public License v1.0 |
| 7 |
* which accompanies this distribution, and is available at |
10 |
* which accompanies this distribution, and is available at |
| 8 |
* http://www.eclipse.org/legal/epl-v10.html |
11 |
* http://www.eclipse.org/legal/epl-v10.html |
| 9 |
* $Id: tcreatePluginTest.htm,v 1.1 2008/02/29 04:18:22 paules Exp $ |
12 |
* $Id: tcreatejunit.htm,v 1.7 2008/02/28 17:04:27 jkubasta Exp $ |
| 10 |
* |
13 |
* |
| 11 |
* Contributors: |
14 |
* Contributors: |
| 12 |
* Scapa Technologies - Initial contribution |
15 |
* IBM - Initial contribution |
| 13 |
**********************************************************************/ |
16 |
**********************************************************************/ |
| 14 |
--> |
17 |
--> |
| 15 |
<html lang="en-us" xml:lang="en-us"> |
|
|
| 16 |
|
| 17 |
<head> |
18 |
<head> |
| 18 |
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"/> |
19 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 19 |
<link rel=StyleSheet href="../css/book.css" type="text/css"/> |
20 |
<link rel="stylesheet" type="text/css" href="../css/book.css" /> |
| 20 |
<title>Creating a JUnit plug-in test</title> |
21 |
<title>Creating JUnit Plug-in tests</title> |
| 21 |
</head> |
22 |
</head> |
| 22 |
|
|
|
| 23 |
<body> |
23 |
<body> |
| 24 |
|
24 |
|
| 25 |
<h1>Creating a JUnit plug-in test</h1> |
25 |
<h1>Creating JUnit Plug-in tests</h1> |
| 26 |
<p> |
26 |
<p> |
| 27 |
Create the test that will be used to test the plug-in. |
27 |
You can create a TPTP JUnit Plug-in test in one of two ways: manually or from an |
| 28 |
</p> |
28 |
existing JUnit Plug-in test case. |
|
|
29 |
</p> |
| 29 |
|
30 |
|
| 30 |
<ol> |
31 |
<ul> |
| 31 |
<li> |
|
|
| 32 |
Select <b>File</b> > <b>New </b>> <b>Other </b>> <b>Test </b>> <b>TPTP JUnit Plug-in Test</b>. |
| 33 |
If you see the <b>New Test Case</b> dialog asking you if you want to add some libraries on the build path, |
| 34 |
click <b>Yes</b>. |
| 35 |
</li> |
| 36 |
<li> |
32 |
<li> |
| 37 |
Click <b>Next</b>. |
33 |
<a href="tptpJUnitPluginTest_creatingManually.htm">Creating a JUnit Plug-in test manually</a> |
| 38 |
<ul> |
34 |
<p> |
| 39 |
<li>In the <b>Source folder</b> entry field type <i>pluginProj/src</i>.</li> |
35 |
TPTP JUnit Plug-in Tests can be created manually or as a result of |
| 40 |
<li>In the <b>Package</b> entry field type <i>tests</i>.</li> |
36 |
importing existing JUnit Plug-in tests outside TPTP into a TPTP JUnit Plug-in Test. They should |
| 41 |
<li>In the <b>Name</b> entry field type <i>EclipseUiTest</i>.</li> |
37 |
be created manually if they are to exploit the TPTP JUnit Plug-in Test <i>behavior</i> |
| 42 |
</ul> |
38 |
feature. |
|
|
39 |
</p> |
| 40 |
<br/> |
| 43 |
</li> |
41 |
</li> |
| 44 |
<li> |
42 |
<li> |
| 45 |
Select either 'In the test editor' or 'In the code editor' for the test behavior option. |
43 |
<a href="tptpJUnitPluginTest_importing.htm">Importing an existing JUnit Plug-in test</a> |
| 46 |
See <i>JUnit Test Suite Editor</i> for a detailed explanation of these options. |
44 |
<p>If you have JUnit Plug-in tests outside of TPTP, these can be |
|
|
45 |
imported into a TPTP JUnit Plug-in test.</p> |
| 46 |
<br/> |
| 47 |
</li> |
47 |
</li> |
| 48 |
<li> |
48 |
</ul> |
| 49 |
Click <b>Next</b> and provide the test's name and location. |
|
|
| 50 |
</li> |
| 51 |
<li>Click <b>Next</b> and provide a description if required. Click <b>Finish</b>. </li> |
| 52 |
</ol> |
| 53 |
|
| 54 |
<p>You now have a JUnit plug-in project test named <b>EclipseUiTest</b>.</p> |
| 55 |
|
| 56 |
|
| 57 |
<p> |
| 58 |
<b>Related concepts</b><br /> |
| 59 |
<a href="../concepts/cJUnitTestEditor.htm">JUnit Test Suite Editor</a><br /> |
| 60 |
</p> |
| 61 |
|
49 |
|
| 62 |
</body> |
50 |
</body> |
| 63 |
|
|
|
| 64 |
</html> |
51 |
</html> |