Skip to content

Make tests for the JSON Reader #25

@EatSleepProgramRepeat

Description

@EatSleepProgramRepeat

Make tests for the JSON reader as follows:

  • Test edge cases:
    • Invalid JSON strings don't break constructor
    • For getReleases method:

      • Missing or null fields in the JSON
      • Empty releases array
      • Invalid or unexpected JSON structure
    • For getCDStubs method:

      • Missing or null fields in the JSON
      • Empty cdstubs array
      • Invalid or unexpected JSON structure
    • For createTableModel method:

      • Empty input arrays
      • Null input arrays
      • Invalid data in the input array
    • For getReleasesAsTableModel method:

      • Empty or null MusicBrainzRelease[]
    • For getCDStubsAsTableModel method:

      • Empty or null MusicBrainzCDStub[]
    • Error handling:

      • Invalid or unexpected JSON structures
      • Missing required fields in the JSON

You MAY make changes to other classes if deemed necessary.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions