From d1d487f87d268090fdb7995be8dcf0c2e790f4f4 Mon Sep 17 00:00:00 2001 From: upendrakumbham Date: Fri, 6 Dec 2024 11:42:23 +0000 Subject: [PATCH] Rename test methods Signed-off-by: upendrakumbham --- .../experimentpage/markergenes/MarkerGeneServiceTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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