dlanza1 / ExDeMon

A general purpose metrics monitor implemented with Apache Spark. Kafka source, Elastic sink, aggregate metrics, different analysis, notifications, actions, live configuration update, missing metrics, ...
GNU General Public License v3.0
19 stars 6 forks source link

Suggestion: JSON Assert #1

Closed Joscorbe closed 6 years ago

Joscorbe commented 6 years ago

Discussion: Probably we should use/develop some method to compare JSON Objects in tests, instead of hardcoding the expected result, because same objects could have keys in different order, which would fail the test when they are actually the same object.

dlanza1 commented 6 years ago

That makes a lot of sense, go for it!

dlanza1 commented 6 years ago

One of us should take take of it? split? as you wish.

Joscorbe commented 6 years ago

I think this library is quite simple and fits our purpose perfectly: http://jsonassert.skyscreamer.org/quickstart.html