Class DocumentAccesses


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.yahoo.documentapi.local.LocalDocumentAccess createFromSchemas​(java.lang.String schemaDirectory)
      Reads the .sd files in the given directory, and returns a LocalDocumentAccess with these document types.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createFromSchemas

        public static com.yahoo.documentapi.local.LocalDocumentAccess createFromSchemas​(java.lang.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");