This Plugin can be used to convert JUnit 3 TestCases to JUnit 4 TestCases and to rmeove outdated Non-Javadoc statements
Java Shell Batchfile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.mvn
de.simonscholz.codemodify.build.p2
de.simonscholz.codemodify.build.parent
de.simonscholz.codemodify.feature
de.simonscholz.codemodify.target
de.simonscholz.codemodify
.gitignore
LICENSE
README.md
mvnw
mvnw.cmd
pom.xml

README.md

Eclipse Code Modifying Plugin

This Plugin can be used to convert JUnit 3 TestCases to JUnit 4 TestCases and to remove old non-javadoc comments from the source code.

P2 Updatesite

http://dl.bintray.com/vogellacompany/junit-4-tools/

Features

  • Removes TestCase parent class and the "junit.framework.TestCase" import
  • setUp method
    • adds @Before annotation and its import
    • makes method public
  • tearDown method
    • adds @After annotation and its import
    • makes method public
  • test methods

    • adds @Test annotations and its import
    • Adds static imports for the assert* methods
  • Remove old non-javadoc comments from the source code

Usage

Just right click on a java class, a package or a whole Java project in Eclipse and click on the "Convert to JUnit 4" menu entry.

Package Explorer Context Menu