Proposal: Add Missing Unit Tests for SearchConfig

Hi everyone,

I’m Miraj from India and interested in making my first contribution to the webservices.rest module.

While reviewing the SearchConfig class and its existing test class (SearchConfigTest), I noticed a few behaviours that don’t appear to be explicitly tested yet.

I’d like to contribute tests for the following cases:

  1. Verify that getSupportedOpenmrsVersions() returns an unmodifiable set.

  2. Verify that getSearchQueries() returns an unmodifiable set.

  3. Verify that two SearchConfig instances with identical id, supportedResource, and supportedOpenmrsVersions, but different searchQueries, are considered equal.

Would these test cases be useful additions to the existing test suite?

I’d appreciate your feedback before I start working on them.

Thank you!