diff --git a/app/src/test/java/uk/ac/ebi/atlas/experimentpage/markergenes/MarkerGeneServiceTest.java b/app/src/test/java/uk/ac/ebi/atlas/experimentpage/markergenes/MarkerGeneServiceTest.java index 827637636..eedecf2f1 100644 --- a/app/src/test/java/uk/ac/ebi/atlas/experimentpage/markergenes/MarkerGeneServiceTest.java +++ b/app/src/test/java/uk/ac/ebi/atlas/experimentpage/markergenes/MarkerGeneServiceTest.java @@ -68,7 +68,7 @@ void returnEmptyCellTypeMarkerGeneProfileIfBothOntologyAndAuthorsLabelsDoesNotHa } @Test - void getMarkerGenesCountForTheInferredCelltypeOntologyLabels() { + void getMarkerGenesCountGreaterThanZero_IfTheMarkerGenesExistForTheInferredCellTypeOntologyLabels() { when(markerGenesDaoMock.getMarkerGenesForTheInferredCellTypes("E-EHCA-2", "inferred cell type - ontology labels")) .thenReturn(1); @@ -79,15 +79,16 @@ void getMarkerGenesCountForTheInferredCelltypeOntologyLabels() { } @Test - void getMarkerGenesCountForInferredCellTypeAuthorsLabels() { + void getMarkerGenesCountGreaterThanZero_IfTheMarkerGenesExistForTheInferredCellTypeAuthorsLabels() { when(markerGenesDaoMock.getMarkerGenesForTheInferredCellTypes( "E-EHCA-2", "inferred cell type - authors labels")) .thenReturn(1); + assertThat(subject.isMarkerGenesAvailableForTheInferredCellTypes( "E-EHCA-2", "inferred cell type - authors labels")) - .isGreaterThan(0); + .isEqualTo(1); } @Test