Package com.yahoo.application.container
Class DocumentAccesses
java.lang.Object
com.yahoo.application.container.DocumentAccesses
Utility for working with a
LocalDocumentAccess
for unit testing components which require a DocumentAccess
.- Author:
- jonmv
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.yahoo.documentapi.local.LocalDocumentAccess
createFromSchemas
(String schemaDirectory) Reads the.sd
files in the given directory, and returns aLocalDocumentAccess
with these document types.
-
Method Details
-
createFromSchemas
public static com.yahoo.documentapi.local.LocalDocumentAccess createFromSchemas(String schemaDirectory) Reads the.sd
files in the given directory, and returns aLocalDocumentAccess
with these document types.
Example usage:LocalDocumentAccess access = DocumentAccesses.ofSchemas("src/main/application/schemas");
-