Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1575

Platform specific end of line hardcoded in unit test causes test failure on Windows.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 1.7.7
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      None
    • Environment:

      Windows

      Description

      diff --git a/lang/java/avro/src/test/java/org/apache/avro/TestSchemaCompatibility.java b/lang/java/avro/src/test/java/org/apache/avro/TestSchemaCompatibility.java
      index 10d87df..6114981 100644
      — a/lang/java/avro/src/test/java/org/apache/avro/TestSchemaCompatibility.java
      +++ b/lang/java/avro/src/test/java/org/apache/avro/TestSchemaCompatibility.java
      @@ -246,8 +246,8 @@
      reader,
      WRITER_SCHEMA,
      String.format(

      • "Data encoded using writer schema:\n%s\n"
      • + "will or may fail to decode using reader schema:\n%s\n",
        + "Data encoded using writer schema:%n%s%n"
        + + "will or may fail to decode using reader schema:%n%s%n",
        WRITER_SCHEMA.toString(true),
        reader.toString(true)));

      @@ -271,8 +271,8 @@
      invalidReader,
      STRING_ARRAY_SCHEMA,
      String.format(

      • "Data encoded using writer schema:\n%s\n"
      • + "will or may fail to decode using reader schema:\n%s\n",
        + "Data encoded using writer schema:%n%s%n"
        + + "will or may fail to decode using reader schema:%n%s%n",
        STRING_ARRAY_SCHEMA.toString(true),
        invalidReader.toString(true)));

      @@ -299,8 +299,8 @@
      INT_SCHEMA,
      STRING_SCHEMA,
      String.format(

      • "Data encoded using writer schema:\n%s\n"
      • + "will or may fail to decode using reader schema:\n%s\n",
        + "Data encoded using writer schema:%n%s%n"
        + + "will or may fail to decode using reader schema:%n%s%n",
        STRING_SCHEMA.toString(true),
        INT_SCHEMA.toString(true)));

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                zolyfarkas Zoltan Farkas
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5m
                  5m
                  Remaining:
                  Remaining Estimate - 5m
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified