New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
best way to convert a JUnit assertion into a assertj fluent assertion? #241
Comments
Hi Stefano, It can't be done in assertj-core because it only relies on JDK - no other dependencies - to make avoid dependency version mismatch for users. It should done in a separate module assertj-json much like assertj-guava, you will need:
I can create assertj-json repository and give you admin rights on it (I prefer to have modules project on my account, it's easier to manage). Tell me what you think and if you are happy to contribute, I'll create the repository. Thanks ! |
Hi Joel, Ste On Sun, Sep 21, 2014 at 1:36 AM, Joel Costigliola notifications@github.com
|
Hi Joel, thanks in advance, Ste On Mon, Sep 22, 2014 at 12:48 AM, Stefano Fornari <stefano.fornari@gmail.com
|
assertj-core won't know anything from assertj-json to avoid dependencies on third party libraries, users juts have to import I will create the assertj-json today. |
I have created assertj-json and given you the right to push commits to it directly (no PR needed). |
Hi Joel, Ste On Wed, Sep 24, 2014 at 12:21 AM, Joel Costigliola <notifications@github.com
|
Hi Joel, Ste On Wed, Sep 24, 2014 at 12:42 PM, Joel Costigliola <notifications@github.com
|
Ahhh my bad ! I forgot to push my changes last night :( the code formatting settings is https://github.com/joel-costigliola/assertj-core/blob/master/src/ide-support/assertj-eclipse-formatter.xml |
I use netbeans ;) can you please also answer my question about using then(...)? thanks in advance! Ste On Wed, Sep 24, 2014 at 11:23 PM, Joel Costigliola <notifications@github.com
|
hope there is a plugin that takes eclipse preferences ... no big deal, it just makes it harder to compare commits when formatting has changed. You are welcome the add |
oh, I see... it does not pick it up automatically; I will need to import it Ste On Wed, Sep 24, 2014 at 11:34 PM, Joel Costigliola <notifications@github.com
|
commit pushed ! |
Hi Joel, Ste On Thu, Sep 25, 2014 at 9:46 AM, Joel Costigliola notifications@github.com
|
That is a problem if the code is in assertj-json repository for future contributors. |
Hi Joel, Ste On Sun, Sep 28, 2014 at 6:03 AM, Joel Costigliola notifications@github.com
|
closing this issue since assertj-json exists. |
Hi,
I would like to convert a JUnit assertion (https://github.com/skyscreamer/JSONassert) creating a fluent assertion for assertj. What's the best way to do it? The final goal would be to support something like this:
JSONObject ref = ...;
JSONObject o = ...;
then(o).isEqualTo(ref);
I read all the available documentation and I am quite familiar with the use of assertj, but I would need some initial directions to start the task. I'll be happy to contribute it to the project if liked.
Thanks in advance,
stefano
The text was updated successfully, but these errors were encountered: