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 { ...@@ -76,7 +76,7 @@ class GermplasmRepositoryTest {
@Test @Test
void should_Get_By_Id_Mcpd() { void should_Get_Mcpd_By_Id() {
String germplasmDbId = "13705"; String germplasmDbId = "13705";
GermplasmMcpdVO germplasm = repository.getAsMcpdById(germplasmDbId); GermplasmMcpdVO germplasm = repository.getAsMcpdById(germplasmDbId);
assertThat(germplasm).isNotNull(); assertThat(germplasm).isNotNull();
...@@ -91,6 +91,18 @@ class GermplasmRepositoryTest { ...@@ -91,6 +91,18 @@ class GermplasmRepositoryTest {
assertThat(germplasm).isNull(); 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 @Test
void should_Not_Get_By_Incorrect_Id() { void should_Not_Get_By_Incorrect_Id() {
......
...@@ -138,19 +138,19 @@ ...@@ -138,19 +138,19 @@
"type": "keyword" "type": "keyword"
}, },
"latitudeDecimal": { "latitudeDecimal": {
"type": "integer" "type": "keyword"
}, },
"latitudeDegrees": { "latitudeDegrees": {
"type": "integer" "type": "keyword"
}, },
"locationDescription": { "locationDescription": {
"type": "keyword" "type": "keyword"
}, },
"longitudeDecimal": { "longitudeDecimal": {
"type": "integer" "type": "keyword"
}, },
"longitudeDegrees": { "longitudeDegrees": {
"type": "integer" "type": "keyword"
}, },
"spatialReferenceSystem": { "spatialReferenceSystem": {
"type": "keyword" "type": "keyword"
......
Supports Markdown
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