public SchemaUpdateRequest toUpdateRequest() { SchemaUpdateRequest updateRequest = new SchemaUpdateRequest(); updateRequest.setContainer(isContainer()); updateRequest.getFields().addAll(getFields()); updateRequest.setName(getName()); updateRequest.setSegmentField(getSegmentField()); updateRequest.setDisplayField(getDisplayField()); updateRequest.setDescription(getDescription()); updateRequest.setElasticsearch(getElasticsearch()); updateRequest.setUrlFields(getUrlFields()); return updateRequest; }
public SchemaResponseAssert matches(Schema schema) { assertNotNull(schema); assertNotNull(actual); assertEquals("The name of the schemas do not match.", actual.getName(), schema.getName()); assertEquals("The description of the schemas do not match.", actual.getDescription(), schema.getDescription()); assertEquals("The displayField of the schemas do not match.", actual.getDisplayField(), schema.getDisplayField()); assertEquals("The segmentField of the schemas do not match.", actual.getSegmentField(), schema.getSegmentField()); // TODO assert for schema properties return this; }
public SchemaCreateRequestAssert matches(SchemaResponse response) { assertNotNull(response); assertNotNull(actual); assertEquals("The name of the schemas do not match.", actual.getName(), response.getName()); assertEquals("The description of the schemas do not match.", actual.getDescription(), response.getDescription()); assertEquals("The displayField of the schemas do not match.", actual.getDisplayField(), response.getDisplayField()); assertEquals("The segmentField of the schemas do not match.", actual.getSegmentField(), response.getSegmentField()); // TODO assert for schema properties return this; }