Class DocumentAccesses


  • public class DocumentAccesses
    extends Object
    Utility for working with a LocalDocumentAccess for unit testing components which require a DocumentAccess.
    Author:
    jonmv
    • Method Detail

      • createFromSchemas

        public static com.yahoo.documentapi.local.LocalDocumentAccess createFromSchemas​(String schemaDirectory)
        Reads the .sd files in the given directory, and returns a LocalDocumentAccess with these document types.
        Example usage:
         LocalDocumentAccess access = DocumentAccesses.ofSchemas("src/main/application/schemas");