Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • openbravo openbravo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Custom issue tracker
    • Custom issue tracker
  • Merge requests 38
    • Merge requests 38
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Commits
Collapse sidebar

Scheduled maintenance on the database layer will take place on 2022-07-02. We expect GitLab.com to be unavailable for up to 2 hours starting from 06:00 UTC. Kindly follow our status page for updates and read more in our blog post.

  • openbravo
  • product
  • openbravoopenbravo
  • Merge requests
  • !497

fixes ISSUE-48373: Test matchers for asserting JSON objects

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Carlos Aristu requested to merge openbravo/devel/openbravo:fix/48373 into master Jan 11, 2022
  • Overview 12
  • Commits 1
  • Changes 8

Description

Provide the following test matchers for asserting JSON objects:

  • equal(JSONObject)
  • matchesObject(JSONObject)
  • hasItems(Object...)
  • hasItems(Matcher<?>...)

Documentation

http://wiki.openbravo.com/wiki/How_to_create_JUnit_testcases#JSON_Matchers

Edited Jan 25, 2022 by Carlos Aristu
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/48373