Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0049226 | Openbravo ERP | A. Platform | public | 2022-05-05 11:09 | 2022-05-06 10:51 |
|
Reporter | caristu | |
Assigned To | caristu | |
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR22Q3 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0049226: matchesObject should fail if there are missing properties in actual |
Description | Given:
actual = { p1: 1, p2: 2, p4: 4 }
expected = { p1: 1, p2: 2, p3: 3 }
Then:
assertThat(actual, matchesObject(expected)) must be false.
But currently this is not being asserted correctly as it returns true because when having the same number of properties only the common properties (p1 and p2 in this example) are taken into account. |
Steps To Reproduce | . |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0048373 | | closed | caristu | Provide test matchers for asserting JSON objects |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-05-05 11:09 | caristu | New Issue | |
2022-05-05 11:09 | caristu | Assigned To | => caristu |
2022-05-05 11:09 | caristu | OBNetwork customer | => No |
2022-05-05 11:09 | caristu | Modules | => Core |
2022-05-05 11:09 | caristu | Triggers an Emergency Pack | => No |
2022-05-05 11:09 | caristu | Issue generated from | 0049170 |
2022-05-05 11:09 | caristu | Relationship added | related to 0049170 |
2022-05-05 11:11 | caristu | Summary | matchesObject should fail if there are properties missing in actual => matchesObject should fail if there are missing properties in actual |
2022-05-05 11:12 | hgbot | Merge Request Status | => open |
2022-05-05 11:12 | hgbot | Note Added: 0136968 | |
2022-05-05 16:43 | hgbot | Note Added: 0136985 | |
2022-05-06 07:30 | hgbot | Merge Request Status | open => approved |
2022-05-06 10:51 | hgbot | Resolution | open => fixed |
2022-05-06 10:51 | hgbot | Status | new => closed |
2022-05-06 10:51 | hgbot | Note Added: 0137018 | |
2022-05-06 10:51 | hgbot | Fixed in Version | => PR22Q3 |
2022-05-06 10:51 | hgbot | Note Added: 0137019 | |
2022-05-18 11:41 | caristu | Relationship deleted | related to 0049170 |
2022-05-18 11:41 | caristu | Relationship added | related to 0048373 |