Commit 13cfe1f7 authored by Matija Obreza's avatar Matija Obreza
Browse files

FIX: _type in JSON was changed to _class

parent f205f233
...@@ -143,7 +143,7 @@ public class CropsControllerTest extends AbstractRestTest { ...@@ -143,7 +143,7 @@ public class CropsControllerTest extends AbstractRestTest {
fieldWithPath("i18n").type(JsonFieldType.STRING).optional().description("i18n map"), fieldWithPath("i18n").type(JsonFieldType.STRING).optional().description("i18n map"),
fieldWithPath("otherNames").type(JsonFieldType.ARRAY).optional().description("Alternative spellings of the crop name"), fieldWithPath("otherNames").type(JsonFieldType.ARRAY).optional().description("Alternative spellings of the crop name"),
fieldWithPath("active").ignored(), fieldWithPath("active").ignored(),
fieldWithPath("_type").ignored(), fieldWithPath("_class").ignored(),
fieldWithPath("createdBy").ignored(), fieldWithPath("createdBy").ignored(),
fieldWithPath("createdDate").ignored(), fieldWithPath("createdDate").ignored(),
fieldWithPath("lastModifiedBy").ignored(), fieldWithPath("lastModifiedBy").ignored(),
...@@ -179,7 +179,7 @@ public class CropsControllerTest extends AbstractRestTest { ...@@ -179,7 +179,7 @@ public class CropsControllerTest extends AbstractRestTest {
fieldWithPath("i18n").type(JsonFieldType.STRING).optional().description("i18n map"), fieldWithPath("i18n").type(JsonFieldType.STRING).optional().description("i18n map"),
fieldWithPath("otherNames").type(JsonFieldType.ARRAY).optional().description("Alternative spellings of the crop name"), fieldWithPath("otherNames").type(JsonFieldType.ARRAY).optional().description("Alternative spellings of the crop name"),
fieldWithPath("active").ignored(), fieldWithPath("active").ignored(),
fieldWithPath("_type").ignored(), fieldWithPath("_class").ignored(),
fieldWithPath("createdBy").ignored(), fieldWithPath("createdBy").ignored(),
fieldWithPath("createdDate").ignored(), fieldWithPath("createdDate").ignored(),
fieldWithPath("lastModifiedBy").ignored(), fieldWithPath("lastModifiedBy").ignored(),
......
...@@ -133,7 +133,7 @@ public class ApiCropsTest extends AbstractRestTest { ...@@ -133,7 +133,7 @@ public class ApiCropsTest extends AbstractRestTest {
fieldWithPath("i18n").type(JsonFieldType.STRING).optional().description("i18n map"), fieldWithPath("i18n").type(JsonFieldType.STRING).optional().description("i18n map"),
fieldWithPath("createdBy").ignored(), fieldWithPath("createdBy").ignored(),
fieldWithPath("active").type(JsonFieldType.BOOLEAN).description("Record is active"), fieldWithPath("active").type(JsonFieldType.BOOLEAN).description("Record is active"),
fieldWithPath("_type").ignored(), fieldWithPath("_class").ignored(),
fieldWithPath("createdDate").ignored(), fieldWithPath("createdDate").ignored(),
fieldWithPath("lastModifiedBy").ignored(), fieldWithPath("lastModifiedBy").ignored(),
fieldWithPath("lastModifiedDate").ignored()))); fieldWithPath("lastModifiedDate").ignored())));
...@@ -157,7 +157,7 @@ public class ApiCropsTest extends AbstractRestTest { ...@@ -157,7 +157,7 @@ public class ApiCropsTest extends AbstractRestTest {
fieldWithPath("otherNames").type(JsonFieldType.ARRAY).optional().description("Alternative spellings of the crop name"), fieldWithPath("otherNames").type(JsonFieldType.ARRAY).optional().description("Alternative spellings of the crop name"),
fieldWithPath("rdfUri").type(JsonFieldType.STRING).optional().description("URI of RDF term describing the crop"), fieldWithPath("rdfUri").type(JsonFieldType.STRING).optional().description("URI of RDF term describing the crop"),
fieldWithPath("i18n").type(JsonFieldType.STRING).optional().description("i18n map"), fieldWithPath("createdBy").ignored(), fieldWithPath("i18n").type(JsonFieldType.STRING).optional().description("i18n map"), fieldWithPath("createdBy").ignored(),
fieldWithPath("_type").ignored(), fieldWithPath("_class").ignored(),
fieldWithPath("createdDate").ignored(), fieldWithPath("createdDate").ignored(),
fieldWithPath("lastModifiedBy").ignored(), fieldWithPath("lastModifiedBy").ignored(),
fieldWithPath("lastModifiedDate").ignored()))); fieldWithPath("lastModifiedDate").ignored())));
...@@ -237,7 +237,7 @@ public class ApiCropsTest extends AbstractRestTest { ...@@ -237,7 +237,7 @@ public class ApiCropsTest extends AbstractRestTest {
fieldWithPath("[].genus").description("Accession is included in the crop when its genus matches specified value."), fieldWithPath("[].genus").description("Accession is included in the crop when its genus matches specified value."),
fieldWithPath("[].species").optional().description("Accession is included in the crop when its species matches specified value."), fieldWithPath("[].species").optional().description("Accession is included in the crop when its species matches specified value."),
fieldWithPath("[].subtaxa").optional().description("Accession is included in the crop when its subtaxa matches specified value."), fieldWithPath("[].subtaxa").optional().description("Accession is included in the crop when its subtaxa matches specified value."),
fieldWithPath("[]._type").ignored()))); fieldWithPath("[]._class").ignored())));
LOG.info("Test updateCropRulesTest passed"); LOG.info("Test updateCropRulesTest passed");
} }
......
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