• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openmrs / openmrs-module-webservices.rest / 17263834497

27 Aug 2025 10:12AM UTC coverage: 68.44% (-1.5%) from 69.946%
17263834497

push

github

web-flow
RESTWS-988: Update to OpenMRS Platform 2.7.x and Support Java 21 (#670)

* Update to Platform 2.7.x

* Merge 2.5 and 2.7

* Merge 2.4 and 2.7

* Merge omod and omod-2.7

* Update ChangePasswordController1_8

* Move InitPathMatcher2_4 to the correct package

* Address review comments

* Add the licence header

* Revert AnimalResource_1_11

* Update tests

* Update tests

* Update AnimalClassResourceLegacy

* Remove setCurrentOpenMRSVersion method

* Revert formatting changes

* Revert formatting changes

* Revert formatting changes

* Merge omod and commons

* Revert "Merge omod and commons"

This reverts commit c68ef20d3.

* Move RestServiceImplTest to omod

* Remove AnimalClassResourceLegacy.java

* fix doSearch_shouldProcessIncludeAll

* update doSearch_shouldProcessIncludeAll

* update doSearch_shouldProcessIncludeAll

* Use hamcrest in ProviderController2_0Test

10 of 15 new or added lines in 5 files covered. (66.67%)

239 existing lines in 7 files now uncovered.

9572 of 13986 relevant lines covered (68.44%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

52.0
/omod-common/src/main/java/org/openmrs/module/webservices/rest/web/resource/api/SearchParameter.java
1
/**
2
 * This Source Code Form is subject to the terms of the Mozilla Public License,
3
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
4
 * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
5
 * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
6
 *
7
 * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
8
 * graphic logo is a trademark of OpenMRS Inc.
9
 */
10
package org.openmrs.module.webservices.rest.web.resource.api;
11

12
public class SearchParameter {
13
        
14
        String name;
15
        
16
        String value;
17
        
18
        public SearchParameter(String name) {
1✔
19
                this.name = name;
1✔
20
                this.value = null;
1✔
21
        }
1✔
22
        
UNCOV
23
        public SearchParameter(String name, String value) {
×
UNCOV
24
                this.name = name;
×
UNCOV
25
                this.value = value;
×
UNCOV
26
        }
×
27
        
28
        public String getName() {
UNCOV
29
                return name;
×
30
        }
31
        
32
        public void setName(String name) {
33
                this.name = name;
×
34
        }
×
35
        
36
        public String getValue() {
UNCOV
37
                return value;
×
38
        }
39
        
40
        public void setValue(String value) {
41
                this.value = value;
×
42
        }
×
43
        
44
        @Override
45
        public boolean equals(Object o) {
46
                if (this == o)
1✔
47
                        return true;
×
48
                if (o == null || !(o instanceof SearchParameter))
1✔
49
                        return false;
×
50
                
51
                SearchParameter that = (SearchParameter) o;
1✔
52
                
53
                if (!name.equals(that.name))
1✔
54
                        return false;
1✔
55
                return value != null ? value.equals(that.value) : that.value == null;
1✔
56
                
57
        }
58
        
59
        @Override
60
        public int hashCode() {
61
                int result = name.hashCode();
1✔
62
                result = 31 * result + (value != null ? value.hashCode() : 0);
1✔
63
                return result;
1✔
64
        }
65
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc