Class MockFileSystemTestCase


  • @SuppressFileSystems("*")
    public abstract class MockFileSystemTestCase
    extends LuceneTestCase
    Base class for testing mockfilesystems. This tests things that really need to work: Path equals()/hashcode(), directory listing glob and filtering, URI conversion, etc.
    • Constructor Detail

      • MockFileSystemTestCase

        public MockFileSystemTestCase()
    • Method Detail

      • wrap

        protected abstract Path wrap​(Path path)
        wraps Path with custom behavior
      • testHashCodeEquals

        public void testHashCodeEquals()
                                throws IOException
        Test that Path.hashcode/equals are sane
        Throws:
        IOException
      • testDirectoryStreamFiltered

        public void testDirectoryStreamFiltered()
                                         throws IOException
        Tests that newDirectoryStream with a filter works correctly
        Throws:
        IOException
      • testDirectoryStreamGlobFiltered

        public void testDirectoryStreamGlobFiltered()
                                             throws IOException
        Tests that newDirectoryStream with globbing works correctly
        Throws:
        IOException