Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049170
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2022-04-29 07:382022-05-18 11:41
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in VersionPR22Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049170: matchesObject should not compare array properties with strict equality

DescriptionGiven:

  json1 = { arrayProperty: [{p1: 'A', p2: 'B'}] }
  json2 = { arrayProperty: [{p1: 'A'}] }

Then:

  assertThat(json1, matchesObject(json2)) must be true.

But currently this is not being asserted correctly as it returns false.
Steps To Reproduce.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0048373 closedcaristu Provide test matchers for asserting JSON objects 

-  Notes
(0136849)
hgbot (developer)
2022-04-29 07:47

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/580 [^]
(0136934)
hgbot (developer)
2022-05-04 13:11

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 92044af7d3b9bc3d71ad6b94f80f5404cf2b9e79
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 04-05-2022 08:26:11
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/92044af7d3b9bc3d71ad6b94f80f5404cf2b9e79 [^]

fixes BUG-49170: matchesObject shouldn't compare array props with strict equal

---
M src-test/src/org/openbravo/test/matchers/json/JSONMatcher.java
M src-test/src/org/openbravo/test/matchers/json/JSONMatchersTest.java
---
(0136935)
hgbot (developer)
2022-05-04 13:11

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/580 [^]

- Issue History
Date Modified Username Field Change
2022-04-29 07:38 caristu New Issue
2022-04-29 07:38 caristu Assigned To => Triage Platform Base
2022-04-29 07:38 caristu Modules => Core
2022-04-29 07:38 caristu Triggers an Emergency Pack => No
2022-04-29 07:39 caristu Assigned To Triage Platform Base => caristu
2022-04-29 07:47 hgbot Note Added: 0136849
2022-04-29 07:48 caristu Status new => scheduled
2022-04-29 07:48 caristu Description Updated View Revisions
2022-04-29 07:48 caristu Description Updated View Revisions
2022-04-29 07:48 caristu Description Updated View Revisions
2022-05-04 13:09 alostale Relationship added related to 0048373
2022-05-04 13:11 hgbot Resolution open => fixed
2022-05-04 13:11 hgbot Status scheduled => closed
2022-05-04 13:11 hgbot Fixed in Version => PR22Q3
2022-05-04 13:11 hgbot Note Added: 0136934
2022-05-04 13:11 hgbot Note Added: 0136935
2022-05-05 11:09 caristu Issue cloned 0049226
2022-05-05 11:09 caristu Relationship added related to 0049226
2022-05-18 11:41 caristu Relationship deleted related to 0049226


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker