Skip to content

Commit

Permalink
add controller and service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qlu-cls committed May 10, 2024
1 parent 122988b commit 5e66178
Show file tree
Hide file tree
Showing 6 changed files with 469 additions and 136 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/cbioportal/model/ClinicalData.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public String getAttrId() {
}

public Boolean isPatientAttribute() {
if(clinicalAttribute == null) {
if (clinicalAttribute == null) {
return null;
}
return this.clinicalAttribute.getPatientAttribute();
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/org/cbioportal/model/SurvivalEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ public class SurvivalEvent {
List<ClinicalEvent> startClinicalEventsMeta;
ToIntFunction<ClinicalEvent> startPositionIdentifier;
List<ClinicalEvent> endClinicalEventsMeta;
ToIntFunction<ClinicalEvent> endPositionIdentifier;
List<ClinicalEvent> censoredClinicalEventsMeta;
ToIntFunction<ClinicalEvent> censoredPositionIdentifier;

public List<ClinicalEvent> getStartClinicalEventsMeta() {
return startClinicalEventsMeta;
Expand Down Expand Up @@ -55,8 +58,4 @@ public ToIntFunction<ClinicalEvent> getCensoredPositionIdentifier() {
public void setCensoredPositionIdentifier(ToIntFunction<ClinicalEvent> censoredPositionIdentifier) {
this.censoredPositionIdentifier = censoredPositionIdentifier;
}

ToIntFunction<ClinicalEvent> endPositionIdentifier;
List<ClinicalEvent> censoredClinicalEventsMeta;
ToIntFunction<ClinicalEvent> censoredPositionIdentifier;
}
Loading

0 comments on commit 5e66178

Please sign in to comment.