add a test to the new content_type field
This commit is contained in:
parent
892767864f
commit
83271d0806
|
@ -55,6 +55,7 @@ public class SimpleAttachmentMapperTests {
|
|||
|
||||
Document doc = docMapper.parse(json).rootDoc();
|
||||
|
||||
assertThat(doc.get(docMapper.mappers().smartName("file.content_type").mapper().names().indexName()), equalTo("application/xhtml+xml"));
|
||||
assertThat(doc.get(docMapper.mappers().smartName("file.title").mapper().names().indexName()), equalTo("XHTML test document"));
|
||||
assertThat(doc.get(docMapper.mappers().smartName("file").mapper().names().indexName()), containsString("This document tests the ability of Apache Tika to extract content"));
|
||||
|
||||
|
@ -66,6 +67,7 @@ public class SimpleAttachmentMapperTests {
|
|||
|
||||
doc = docMapper.parse(json).rootDoc();
|
||||
|
||||
assertThat(doc.get(docMapper.mappers().smartName("file.content_type").mapper().names().indexName()), equalTo("application/xhtml+xml"));
|
||||
assertThat(doc.get(docMapper.mappers().smartName("file.title").mapper().names().indexName()), equalTo("XHTML test document"));
|
||||
assertThat(doc.get(docMapper.mappers().smartName("file").mapper().names().indexName()), containsString("This document tests the ability of Apache Tika to extract content"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue