Class DocumentAccesses

java.lang.Object
com.yahoo.application.container.DocumentAccesses

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

    • 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");