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

FileOutboundChannelAdapterIntegrationTests does not pass on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.2 M3 Sprint 2
    • Fix Version/s: 2.2 M3 Sprint 3, 2.2 M3
    • Component/s: Testing
    • Labels:
    • Environment:
       Windows

      Description

      The main issue is lying on File.separator which is different on different OSs.
      FileOutboundChannelAdapterIntegrationTests#saveToSubDirWithWrongExpression throws on Windows:

      java.lang.IllegalArgumentException: Destination path [target\base-directory\sub-directory\foo.txt] does not point to a directory.

      which isn't the same what expected:

      Destination path [target/base-directory/sub-directory/foo.txt] does not point to a directory.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abilan Artem Bilan
              Reporter:
              abilan Artem Bilan
              Votes:
              0 Vote for this issue
              Watchers:
              0 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