Roshan Naik created FLUME-2150:
----------------------------------

             Summary: Windows:  TestFileChannelEncryption needs to be a bit 
more conservative when examining the exception message
                 Key: FLUME-2150
                 URL: https://issues.apache.org/jira/browse/FLUME-2150
             Project: Flume
          Issue Type: Bug
          Components: Windows
    Affects Versions: v1.4.0
            Reporter: Roshan Naik
            Assignee: Roshan Naik


Current assertion is :
Assert.assertEquals("java.io.FileNotFoundException: /path/does/not/exist " + 
...)

On Windows the message is a bit different The tail end part /path/.. is not 
same.


Suffices to check the prefix to be platform independent:      
Assert.assertTrue(ex.getMessage().startsWith("java.io.FileNotFoundException"));


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to