Comments (11)
JsonUnit just got support for AssertJ assertions https://github.com/lukas-krecan/JsonUnit
from assertj.
Interesting ! I'll have a closer look at it.
Thanks
from assertj.
We should also have a look to JsonPath
from assertj.
I have no experience with JsonUnit, but Spring MVC supports JsonPath in their assertions and it worked fine in my use cases. As I read also rest-assured supports assertions with JsonPath.
from assertj.
+1 for this. Any progress on it ?
from assertj.
Not a lot I'm afraid, contributors welcome !
from assertj.
We should also have a look at https://github.com/skyscreamer/JSONassert to have a complete state of the art of JSON assertions.
from assertj.
There is a support for fluent assertions in https://github.com/lukas-krecan/JsonUnit
from assertj.
That is an option we will evaluate and if we are happy with it, then we might just use it instead of creating an assertj module for JSON.
from assertj.
There are already good alternatives.
from assertj.
+1
from assertj.
Related Issues (20)
- Maven default goal is not set at the right place HOT 3
- Tests failing on Windows HOT 3
- org.opentest4j.AssertionFailedError HOT 1
- Upgrade workflows from Java 17 to 21 HOT 3
- usingRecursiveComparison doesn't check isEnum deep fields HOT 3
- BinaryDiff could be much faster HOT 2
- Name clash when using WithAssertions in subclass of AbstractAssert HOT 1
- withComparatorForType doesn't apply comparing HOT 1
- ComparingOnlyFieldsOfType only provided types for comparison HOT 3
- Optionals not recognized after extracting, and also not working as extracting parameter HOT 2
- Add cron expression assertion support in assertj-core HOT 9
- Add an alias of `matches` with `tests` HOT 1
- `returns` and `doesNotReturn` should invoke `isNotNull` internally HOT 1
- Recursive comparison fails if ignored fieds are not found in `expected`
- limit depth of recursive comparison HOT 5
- Add `bytes()`/`bytes(Charset)`/`bytes(String)` navigation methods to `AbstractStringAssert` HOT 9
- Better error message instead of "actual is not empty while group of values to look for is" HOT 8
- Nesting satifiesAnyOf within allSatisfy return a Future instead of the correct type HOT 3
- trick to make spotBugs find missing assertions when using SoftAssertions ? HOT 1
- The error Unable to make field transient when running the test with the Java 17 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assertj.