Commit f07a9089 authored by Cyril Pommier's avatar Cyril Pommier Committed by Célia Michotey
Browse files

Add tests correction

parent c1d3d129
......@@ -76,7 +76,7 @@ class GermplasmRepositoryTest {
@Test
void should_Get_By_Id_Mcpd() {
void should_Get_Mcpd_By_Id() {
String germplasmDbId = "13705";
GermplasmMcpdVO germplasm = repository.getAsMcpdById(germplasmDbId);
assertThat(germplasm).isNotNull();
......@@ -91,6 +91,18 @@ class GermplasmRepositoryTest {
assertThat(germplasm).isNull();
}
@Test
void should_Get_Mcpd_By_Id_checkAll() {
String germplasmDbId = "13705";
GermplasmMcpdVO germplasm = repository.getAsMcpdById(germplasmDbId);
assertThat(germplasm).isNotNull();
assertThat(germplasm.getGermplasmDbId()).isEqualTo(germplasmDbId);
assertThat(germplasm.getCollectingInfo()).isNotNull();
assertThat(germplasm.getCollectingInfo().getCollectingSite()).isNotNull();
assertThat(germplasm.getCollectingInfo().getCollectingSite().getLocationDbId()).isNotNull();
assertThat(germplasm.getCollectingInfo().getCollectingSite().getLocationDbId()).isEqualTo("dXJuOlVSR0kvbG9jYXRpb24vNDA2MzU=");
assertThat(germplasm.getCollectingInfo().getCollectingSite().getLocationDbId()).isNotEqualTo("dXJuOlVSR0kvbG9");
}
@Test
void should_Not_Get_By_Incorrect_Id() {
......
......@@ -138,19 +138,19 @@
"type": "keyword"
},
"latitudeDecimal": {
"type": "integer"
"type": "keyword"
},
"latitudeDegrees": {
"type": "integer"
"type": "keyword"
},
"locationDescription": {
"type": "keyword"
},
"longitudeDecimal": {
"type": "integer"
"type": "keyword"
},
"longitudeDegrees": {
"type": "integer"
"type": "keyword"
},
"spatialReferenceSystem": {
"type": "keyword"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment