Class DefaultFileLoadingStrategyTest


  • public class DefaultFileLoadingStrategyTest
    extends Object
    Tests for the DefaultFileLoadingStrategy.
    • Constructor Detail

      • DefaultFileLoadingStrategyTest

        public DefaultFileLoadingStrategyTest()
    • Method Detail

      • testNullFile_NullResponse

        public void testNullFile_NullResponse()
                                       throws Exception
        Throws:
        Exception
      • testNullResponse_FileNotUpdatedSinceLastLoad

        public void testNullResponse_FileNotUpdatedSinceLastLoad()
                                                          throws Exception
        Throws:
        Exception
      • testIOErrorOnRead

        public void testIOErrorOnRead()
                               throws Exception
        Test an IO error on reading. Because we can not mock the internal structure of the File class, this actually dies with an NullPointerException inside the FileInputStream class. It does however trigger the correct branch of the logic to exercise the error handling.
        Throws:
        Exception - on error.