ProjectJunitMigrationToNB72
How to upgrade NetBeans project to NetBeans 7.2
Some time after releasing NetBeans 7.2, users found out an issue 215967 preventing them to smoothly upgrade their projects with overridden junit macro definition from pre-7.2 releases to NetBeans 7.2.
Problem description
After opening a project in NetBeans 7.2 and running ant test command, project build fails with:
BUILD FAILED .../nbproject/build-impl.xml:1439: The following error occurred while executing this line: .../nbproject/build-impl.xml:525: The following error occurred while executing this line: .../nbproject/build-impl.xml:498: unsupported element customize
Solution
add following to customized junit macro definition:
<attribute default="" name="testmethods"/> <element name="customize" optional="true"/> <customize/>