How to use JTiger with the Intellij IDEA 4.5 development environment
Intellij IDEA is an Integrated Development Environment (IDE) by JetBrains. The following instructions were applied to IDEA version 4.5. If you are using a different version, slight adjustments to the instructions may be required. These instructions convey the general idea on how to get up and running with JTiger in any development environment and so they may be of value, even if you use some other environment such as Eclipse.
These instructions use $PROJECT_HOME to specify your project directory. Where you see this term in the instructions, replace it with the actual value of your project directory.
From the menu, select File -> New Project.
Give the project a name and location and click Next.
Configure a JDK version 1.5 and click Next.
Select a single module project and click Next.
Select Java Module for the module type and click Next.
Give the module a name and content root and click Next.
Create a source directory called 'src' (the default).
Set the compiler output path to '$PROJECT_HOME/classes' (the default).
Create a directory called '$PROJECT_HOME/lib'.
Copy jtiger.jar to the directory called '$PROJECT_HOME/lib'.
Right-click on the module and select 'Module Settings'.
Go to the tab called 'Libraries (Classpath)'.
Select 'Add Jar/Directory'.
Navigate to jtiger.jar in the directory called '$PROJECT_HOME/lib' and click OK.
Set the language level for the project to 5.0 and click OK.
In the source directory (src), create two source files; org/jtiger/samples/Sum.java and org/jtiger/samples/TestSum.java.
Write a method called 'sum' in both classes; the implementation in class Sum, and the testing of the implementation in class TestSum.
On the 'sum' method in TestSum, add the annotation @Test, which can be imported from org.jtiger.framework.
From the menu, select Run -> Edit Configurations.
Go to the tab called 'Application'.
Press the plus (+) sign to add a new configuration.
Select a name for the new configuration.
Set the 'Main Class' to 'org.jtiger.framework.FixturesRunnerMain' to execute the JTiger command line environment.
Set the 'Program Parameters' to '-fixtureClasses org.jtiger.samples.TestSum' to run the test fixture under the JTiger command line environment.
Select the module that was created earlier to use for the classpath and JDK and click OK.
From the menu, select Run -> Debug.
Click 'Debug'.
Select 'Yes' to create the build output path.
Observe the results of your test execution as a summary in the Console (standard output).
From the menu, select Run -> Edit Configurations.
Go to the tab called 'Application'.
Change the 'Program Parameters' to output a HTML report with the value '-fixtureClasses org.jtiger.samples.TestSum -result ~html -resultParams report' and click OK.
From the menu, select Run -> Debug.
Click 'Debug'.
Observe the results of your test execution as a HTML report in the directory called '$PROJECT_HOME/report'.
You can download the sample project from here. Simply extract the zip file and open the Intellij IDEA project file.