Class TestFileInitializer


  • public class TestFileInitializer
    extends FileInitializer
    In a start testing scenario, it is often not important to actually download or initialize a file, this implementation is merely a no-op for the FileInitializer
    • Constructor Detail

      • TestFileInitializer

        public TestFileInitializer​(BaseHome basehome)
    • Method Detail

      • create

        public boolean create​(java.net.URI uri,
                              java.lang.String location)
                       throws java.io.IOException
        Description copied from class: FileInitializer
        Initialize a file resource
        Specified by:
        create in class FileInitializer
        Parameters:
        uri - the URI of the resource acting as its source
        location - the simple string reference to the output file, suitable for searching for the file in other locations (like ${jetty.home} or ${jetty.dir}) *
        Returns:
        true if local file system is modified.
        Throws:
        java.io.IOException - if there was an attempt to initialize, but an error occurred.