Authors:
rjackson

JUnit 4 Synchronizer

Products: IntelliJ IDEA

Vendor: Russ Jackson

Email:

Creates JUnit 4 test classes/methods for source methods annotated with the @Testable annotation. The test classes are created in a 'test' package, inside which the application package structure is duplicated. The 'test' package will be created if it does not already exist. The @Testable annotation is created automatically in the 'test' package the first time the synchronizer is run. @Testable currently has a single attribute whereby you can override the name of the test method to be created. For example, @Testable("testIntegerAddition") would create a test method named 'testIntegerAddition'. If no name attribute is specified a default name will be created that consists of the name of the annotated method prefixed with 'test'. Test classes will only be created for those source classes with at least one method annotated with @Testable. This plugin is available from the 'Tools' menu or from the project view popup menu as 'Synchronize JUnit Tests'. Instructions: #1 - RunSynchronize JUnit Tests once to create the @Testable annotation. #2 - Annotate desired source methods with @Testable annotation. #3 - Run Synchronize JUnit Tests to create test methods. #4 - Repeat steps 2 and 3 as often as desired to create new unit tests. Note 1: If you have a multi-module project simply copy the @Testable annotation from the first module (as created during step 1 above) into 'test' packages in the additional modules and proceed with steps 2 thru 4 to create the unit tests for these modules. Note 2: An enhancement request has been submitted to JUnit.org (via SourceForge.net) to include the @Testable annotation in the JUnit 4 framework.
Downloads: 10780
Rating:
Participated in rating: 4
Version Compatible builds Date
0.1.1 60.6107 02.01.2007 Download
2 updates are hidden show all updates

General usage instructions

This plugin is available from the \'Tools\' menu or from the project view popup menu as \'Synchronize JUnit Tests\'. Run the plugin once to create the necessary @Testable annotation. Once this annotation is created you can use it to annotate the methods you want to create test units/methods for. Once you have annotated your methods run the plugin from one of the menus to create the appropriate test methods/classes.