Changes for page Testing-JUnit and TestNG
Last modified by Yana Oksner on 2026/01/08 12:10
From version 5.1
edited by fjecker
on 2009/05/19 06:39
on 2009/05/19 06:39
Change comment:
There is no comment for this version
To version 8.1
edited by Greg.Brown
on 2009/09/26 11:59
on 2009/09/26 11:59
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Testing-JUnit 1 +Testing-JUnit and TestNG - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. fjecker1 +XWiki.gbrown - Content
-
... ... @@ -1,9 +1,9 @@ 1 -= Testing with JUnit = 1 += Testing with JUnit and the similar TestNG = 2 2 3 3 == Minor configuration in eclipse == 4 4 5 5 To be able to test your business objects layer in JUnit test cases, you should set the following parameters in your test case/test suite launch configuration : 6 -First in the //"Argu ements"// tab, set your working directory to the build product of your project. For example, for a framework project the working directory should be :6 +First in the //"Arguments"// tab, set your working directory to the build product of your project. For example, for a framework project the working directory should be : 7 7 8 8 {{noformat}} 9 9 ... ... @@ -19,9 +19,14 @@ 19 19 20 20 {{/noformat}} 21 21 22 +[[image:RunConfig1.jpg]] 23 + 22 22 Then, in the classpath tab, select the //"User Entries"// entry and use the //"Advanced..."// button and select the //"Add Folders"// button. 25 +[[image:RunConfig2.jpg]] 26 + 23 23 Select the //"Java"// folder of your build product. 24 24 Use the //"Up/Down"// buttons to move this folder at the first position of your classpath. 29 +[[image:RunConfig3.jpg]] 25 25 26 26 {{note title="Be Careful"}} 27 27