- Right click on the project you are working on.
- Go to Properties which will open a Properties window.
- Go to the Java Build Path.
- Do Add Folder to add new folders to which have dependiencies.
- You can add the Libraries also.
Tuesday, June 29, 2010
Creating dependencies between the Projects.
Taking the Snapshot of the frontmost window in Windows
Pressing Alt-PrintScreen (Alt-PrtScrn) places an image of the frontmost window on the clipboard. Pressing PrintScreen by itself places an image of the entire desktop on the clipboard.
Friday, June 18, 2010
Unit Testing
Using JUnit tests in Eclipse...
A unit test is a piece of code written by a developer that tests a specific functionality in the code which is tested. Unit tests can ensure that functionality is working and can be used to validate that this functionality still works after code changes.
Installation of JUnit Test
To make JUnit available in your Java project you have to add the JUnit library file to your JavaClasspath.
To do that
- right click on the Project folder and go to Properties.
- Under Properties go to the Java Build Path tab under which go to Libraries.
- Now Do Add Linrary and then select JUnit then Next.
- Now add JUnit tests version 3 or 4 as you want.
Create a new project . We want to create the unit tests in a separate folder. Create therefore a new source folder "test" via right mouse click on your project, select properties and choose the "Java Build Path". Select the tab source code.
Subscribe to:
Posts (Atom)