Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2846

Make ImapMailReceiverTests#testAttachments() OS independent

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Complete
    • 2.2 RC3
    • 2.2.1
    • Mail Support
    • Windows

    Description

      The line of the test ImapMailReceiverTests#testAttachments():

      assertEquals("bar\n", ((Multipart) content).getBodyPart(0).getContent());
      

      causes an issue on Windows, beacause the read of 'test.mail' resource and copy of it into OutputStream converts line-separators to OS specific. So, it returns 'bar\t\n'

      Attachments

        Activity

          People

            abilan Artem Bilan
            abilan Artem Bilan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.25d
                0.25d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.25d
                0.25d