Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-13167

FileMEPInOutTest fails on case sensitive filesystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0-M1, 3.0.0
    • tests
    • None
    • Linux with case sensivite filesystem

    • Patch Available
    • Unknown
    • Unit Test Broken

    Description

      Test fails on case sensitive filesystem (using master branch, currenty camel3):

      camel/core/camel-core/src/test/java/org/apache/camel/component/file/FileMEPInOutTest.java

      fix diff:

      diff --git a/core/camel-core/src/test/java/org/apache/camel/component/file/FileMEPInOutTest.java b/core/camel-core/src/test/java/org/apache/ca
      mel/component/file/FileMEPInOutTest.java
      index 653eae88e32..3b73132791c 100644
      — a/core/camel-core/src/test/java/org/apache/camel/component/file/FileMEPInOutTest.java
      +++ b/core/camel-core/src/test/java/org/apache/camel/component/file/FileMEPInOutTest.java
      @@ -32,7 +32,7 @@ public class FileMEPInOutTest extends ContextTestSupport {
               MockEndpoint mock = getMockEndpoint("mock:result");
               mock.expectedMessageCount(1);
               mock.expectedBodiesReceived("Hello World");
      -        mock.expectedFileExists("target/data/fileMEPInOutTest.txt", "Hello World");
      +        mock.expectedFileExists("target/data/FileMEPInOutTest.txt", "Hello World");

               // request is InOut
               template.requestBodyAndHeader("direct:in", "Hello World", Exchange.FILE_NAME,
      @@ -51,4 +51,4 @@ public class FileMEPInOutTest extends ContextTestSupport

      {          }

      ;
           }

      -}
      \ No newline at end of file
      +}

      Attachments

        1. FileMepInOutTest-casefix.patch
          1 kB
          Tapio Piironen

        Activity

          People

            acosentino Andrea Cosentino
            tapiiron Tapio Piironen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: