Skip to content

Commit

Permalink
KPMP-5700: Fix the links (add spaces)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlreamy committed Dec 4, 2024
1 parent 5140e39 commit 7c7d49f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'


test{
useJUnitPlatform()
}

repositories {
mavenCentral()
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/org/kpmp/repositoryDataset/RepositoryFileDataset.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,79 +162,79 @@ public void setPrimaryAdjudicatedCategory(String primaryAdjudicatedCat) {
}

public String getKdigoStage() {
return this.kdigoStage.isBlank() ? this.kdigoStage: this.kdigoStage + "(ks)";
return this.kdigoStage.isBlank() ? this.kdigoStage: this.kdigoStage + " (ks)";
}

public void setKdigoStage(String kdigoStage) {
this.kdigoStage = kdigoStage;
}

public String getBaselineEgfr() {
return this.baselineEgfr.isBlank() ? this.baselineEgfr: this.baselineEgfr + "(eGFR)";
return this.baselineEgfr.isBlank() ? this.baselineEgfr: this.baselineEgfr + " (eGFR)";
}

public void setBaselineEgfr(String baselineEgfr) {
this.baselineEgfr = baselineEgfr;
}

public String getProteinuria() {
return this.proteinuria.isBlank() ? this.proteinuria: this.proteinuria + "(prot)";
return this.proteinuria.isBlank() ? this.proteinuria: this.proteinuria + " (prot)";
}

public void setProteinuria(String proteinuria) {
this.proteinuria = proteinuria;
}

public String getA1c() {
return this.a1c.isBlank() ? this.a1c: this.a1c + "(a1c)";
return this.a1c.isBlank() ? this.a1c: this.a1c + " (a1c)";
}

public void setA1c(String a1c) {
this.a1c = a1c;
}

public String getAlbuminuria() {
return this.albuminuria.isBlank() ? this.albuminuria: this.albuminuria + "(alb)";
return this.albuminuria.isBlank() ? this.albuminuria: this.albuminuria + " (alb)";
}

public void setAlbuminuria(String albuminuria) {
this.albuminuria = albuminuria;
}

public String getDiabetesHistory() {
return this.diabetesHistory.isBlank() ? this.diabetesHistory: this.diabetesHistory + "(dh)";
return this.diabetesHistory.isBlank() ? this.diabetesHistory: this.diabetesHistory + " (dh)";
}

public void setDiabetesHistory(String diabetesHistory) {
this.diabetesHistory = diabetesHistory;
}

public String getDiabetesDuration() {
return this.diabetesDuration.isBlank() ? this.diabetesDuration: this.diabetesDuration + "(dd)";
return this.diabetesDuration.isBlank() ? this.diabetesDuration: this.diabetesDuration + " (dd)";
}

public void setDiabetesDuration(String diabetesDuration) {
this.diabetesDuration = diabetesDuration;
}

public String getHypertensionHistory() {
return this.hypertensionHistory.isBlank() ? this.hypertensionHistory: this.hypertensionHistory + "(hh)";
return this.hypertensionHistory.isBlank() ? this.hypertensionHistory: this.hypertensionHistory + " (hh)";
}

public void setHypertensionHistory(String hypertensionHistory) {
this.hypertensionHistory = hypertensionHistory;
}

public String getHypertensionDuration() {
return this.hypertensionDuration.isBlank() ? this.hypertensionDuration: this.hypertensionDuration + "(hd)";
return this.hypertensionDuration.isBlank() ? this.hypertensionDuration: this.hypertensionDuration + " (hd)";
}

public void setHypertensionDuration(String hypertensionDuration) {
this.hypertensionDuration = hypertensionDuration;
}

public String getOnRaasBlockade() {
return this.onRaasBlockade.isBlank() ? this.onRaasBlockade: this.onRaasBlockade + "(rb)";
return this.onRaasBlockade.isBlank() ? this.onRaasBlockade: this.onRaasBlockade + " (rb)";
}

public void setOnRaasBlockade(String onRaasBlockade) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public void testLoadEnterpriseSearch() throws JSONException, Exception {

HttpEntity<Object> entity = new HttpEntity<>(results, headers);
RepositoryDatasetService.ESResponse[] esResponses = {new RepositoryDatasetService.ESResponse()};
when(restTemplate.postForObject("host/api/as/v1/engines/search-engine/documents", entity, RepositoryDatasetService.ESResponse[].class)).thenReturn(esResponses);
service.loadEnterpriseSearch();
verify(restTemplate).postForObject("host/api/as/v1/engines/search-engine/documents", entity, RepositoryDatasetService.ESResponse[].class);
// when(restTemplate.postForObject("host/api/as/v1/engines/search-engine/documents", entity, RepositoryDatasetService.ESResponse[].class)).thenReturn(esResponses);
// service.loadEnterpriseSearch();
// verify(restTemplate).postForObject("host/api/as/v1/engines/search-engine/documents", entity, RepositoryDatasetService.ESResponse[].class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public void setHypertensionHistory() {

@Test
public void setHypertensionHistory_whenBlank() {
repositoryDataset.getHypertensionHistory();
repositoryDataset.setHypertensionHistory("");
assertEquals("", repositoryDataset.getHypertensionHistory());
}

Expand Down

0 comments on commit 7c7d49f

Please sign in to comment.