Git Product home page Git Product logo

assertions2assertj's Introduction

Assertions2AssertJ

Helper plugin to convert Junit and Hamcrest Assertions to AssertJ. The conversion can be run on a single file, a module or an entire project.

The plugin will aid in the conversion of assert statements, but does not support conversion of all Hamcrest and Junit asserts scenarios. Some manual intervention may be needed.

Note that AssertJ must be included in the IntelliJ project classpath for the Plugin to successfully complete.

Usage

Select an item from within the Refactor -> Convert Assertions to AssertJ menu. Note that the "Convert current file" and "Convert Module" items will only be enabled if a file is selected within the editor.

Limitations

  • The plugin does NOT convert Hamcrest assertions included in Mockito verify statements.
  • The plugin does NOT convert all assertions that utilize matchers embedded within other matchers (e.g. anyOf(equalTo(1.0), equalTo(2.0))).
  • When a file contains both assertions that are converted, and assertions that are ignored, the Hamcrest imports will still be deleted.
  • Does not support the following Hamcrest matchers
    • allOf
    • anything
    • everyItem
    • hasXPath
    • samePropertyValueAs
  • Does not support the following Junit Asserts
    • assertTimeout
    • assertTimeoutPreemptively

assertions2assertj's People

Contributors

mmiikkkkaa avatar ricemery avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.