Skip to content

wlsc/idea-junit-5-converter-plugin

Repository files navigation

JUnit 4 to Junit 5 Converter Plugin

About

Convert your JUnit 4 tests into JUnit 5 Jupiter with the simple contextual converter to help convert your tests with ease.

In development. More features to come.

Release Notes

1.4.1

  • Bugfix: Honoring comments in functions body, also removed throws exception from method declaration for assertThrows conversions

1.4.0

  • Feature: Reduced scope of test methods and class to package private

1.3.2

  • Bugfix: Fixed bug with Code Formatter

  • Updated internal library dependencies

1.3.1

  • Updated internal library dependencies

1.3.0

  • Feature: support for TemporaryFolder conversion

1.2.0

  • Feature: initial Mockito (MockitoExtension) support

  • Feature: generation of @DisplayName also for test classes

1.1.5

  • Feature: Spring Boot testing support for @RunWith → @ExtendWith

1.1.4

  • Bugfix: Assert and Assume with a single argument are not being converted

1.1.3

  • Bugfix: the first character in generated @DisplayName annotation is now capitalized

1.1.2

  • Opinionated change: applying converter only to tests ending with *Test.java

  • Updated library dependencies

1.1.1

  • Fixed bug with first argument should be a String in order to be placed last in function parameters

  • Updated library dependencies

1.1.0

  • Generates @DisplayName from method’s name

1.0.0

  • @Test with parameters ⇒ your code will be wrapped with analogues functions in JUnit 5

  • @BeforeClass / @AfterClass ⇒ @BeforeAll / @AfterAll

  • @Before / @After ⇒ @BeforeEach / @AfterEach

  • @Ignore with a comment ⇒ @Disabled with the same comment

  • Exchanges Assert / Assume with Assertions / Assumptions functions

Developers

  • Wladimir Schmidt

Known issues

  • Message argument parameter (for example, for "assertFalse") when it is not a String, it won’t be pushed last.

License

Please see LICENSE file.