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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028945
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformtrivialhave not tried2015-02-15 17:342022-02-01 08:08
ReporterinigosanchezView Statuspublic 
Assigned ToTriage Platform Base 
PrioritylowResolutionopenFixed in Version
StatusnewFix 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

0028945: Implement matchers for JSON objects

DescriptionImplement matchers in JUnit to test and verify JSON objects.
Steps To Reproduce-
Proposed SolutionSee 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]
TagsNo tags attached.
Attached Filesdiff file icon matchers.diff [^] (24,742 bytes) 2015-02-15 17:34 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker