Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0028945 | Openbravo ERP | A. Platform | public | 2015-02-15 17:34 | 2022-02-01 08:08 |
Reporter | inigosanchez | ||||
Assigned To | Triage Platform Base | ||||
Priority | low | Severity | trivial | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0028945: Implement matchers for JSON objects | ||||
Description | Implement matchers in JUnit to test and verify JSON objects. | ||||
Steps To Reproduce | - | ||||
Proposed Solution | See an example: JSONObject resp = executeDSRequest(params); assertThat(resp, hasKeyValue("data", hasLength(greaterThan(1)))); assertThat( resp, hasKeyValue( "data", arrayContainsElement(hasKeyValue("property", equalTo("salesOrder._ComputedColumns.invoiceStatus"))))); assertThat(resp, hasKeyValue("data[0].property", equalTo("salesOrder._computedColumns"))); See a first approach in attachment diff file.[1] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | matchers.diff (24,742) 2015-02-15 17:34 https://issues.openbravo.com/file_download.php?file_id=7789&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-02-15 17:34 | inigosanchez | New Issue | |||
2015-02-15 17:34 | inigosanchez | Assigned To | => alostale | ||
2015-02-15 17:34 | inigosanchez | File Added: matchers.diff | |||
2015-02-15 17:34 | inigosanchez | Modules | => Core | ||
2015-02-15 17:34 | inigosanchez | Triggers an Emergency Pack | => No | ||
2017-04-10 14:35 | alostale | Assigned To | alostale => platform | ||
2022-02-01 08:08 | alostale | Assigned To | platform => Triage Platform Base |
There are no notes attached to this issue. |