![]() In the zip-file the JMockit version 1.21 is included. For JMockit you can use a different version. You can download the libraries here: junit-tools-libraries.zipĪdd the libraries to your test-project or test-base-project. ![]() Test-Project-Dependenciesįor the generated test- and mock-classes two libraries are necessary: The mock-classes are saved in the project Ĭreate the corresponding test-projects and the mock-project manually.The corresponding test-method for the method under test has the prefix test.The corresponding test-package for the package of the class under test has the same name.The corresponding test-project for the project under test has the postfix.Here you can set your test-structure configurations for the test-projects and more. To configure JUnit-Tools open the Eclipse Preferences and select the category JUnit-Tools. The test- and mock-projects must be created manually. to add the junit-tools repository:Ĭheck JUnit-Tools and start the installation:ĭownload the latest JUnit-Tools release and unzip the file in the plugins or dropins folder of your eclipse installation.įirst you have to check and/or set the preferences of JUnit-Tools and create the necessary test- and mock-projects with the correct settings and dependencies as described as follows. To add the update site and download the plug-ins select Help/Install New Software. Then type "junit-tools" in the search field and select the result: ![]() To open the Eclipse Marketplace select Help/Eclipse Marketplace. With this way it is not necessary to open the Eclipse Marketplace and to search manually for the JUnit-Tools plug-in. It doesn't work if you drop the button to the editor. You can use the Drag and Drop install feature by dragging the button to your running Eclipse workspace.įor example drop the install button to the toolbar or the package explorer of your running Eclipse. It is recommended to install JUnit-Tools via the Eclipse Marketplace or the update site. For the IDE eclipse is a plug-in available which you can download and install with one of following options:
0 Comments
Leave a Reply. |