JSON Comparison in tests is platform dependent
Reported by Paul Jones | 2011-06-10 07:31:49 UTC
The underlying jackson serialisation isn't deterministic when it comes to field ordering in serialisation. This is causing the JSONHelperTest to fail on windows platforms. To correct this we should be doing a JSON aware assertion in tests instead of just comparing strings.
Comments and changes to this ticket
-

Ben Hood 2011-06-10 07:32:24 UTC
(from [955d4efc70df1bf62a01c7a78a012c25a2209467]) [#261] Add JSON-aware assertion https://github.com/lshift/diffa/commit/955d4efc70df1bf62a01c7a78a01...
-

Paul Jones 2011-06-10 07:32:48 UTC
- State changed from new to resolved
- Assigned user changed from Paul Jones to Ben Hood
Changed pushed, using ObjectMapper.readTree for comparable objects.
-

Paul Jones 2011-06-10 07:34:24 UTC
Fix raised as pull request https://github.com/lshift/diffa/pull/17
-

Ben Hood 2011-06-10 16:50:23 UTC
(from [c381530301773092e19ecca771919b96a72f1b52]) Merge pull request #17 from lshift/261
[#261] Add JSON-aware assertion in tests to remove platform dependence https://github.com/lshift/diffa/commit/c381530301773092e19ecca77191...
-

Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A Real Time Differencing Tool.
People watching this ticket
Referenced by
-
261
JSON Comparison in tests is platform dependent
(from [955d4efc70df1bf62a01c7a78a012c25a2209467])
[#261] ...
-
261
JSON Comparison in tests is platform dependent
[#261] Add JSON-aware assertion in tests to remove
platfo...