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

Make ImapMailReceiverTests#testAttachments() OS independent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.2 RC3
    • Fix Version/s: 2.2.1
    • Component/s: Mail Support
    • Environment:
      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

            Assignee:
            abilan Artem Bilan
            Reporter:
            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