Class TestDocumentParserContext

java.lang.Object
org.elasticsearch.index.mapper.DocumentParserContext
org.elasticsearch.index.mapper.TestDocumentParserContext

public class TestDocumentParserContext extends DocumentParserContext
Simplified version of DocumentParserContext to be used in tests. Every non final method throws UnsupportedOperationException and can be implemented as needed. doc() and path() are defined and final, as their behaviour is standard and they are both needed in almost every situation. The methods defined final in DocumentParserContext depend on the provided constructor arguments.