You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Nandor Kollar (JIRA)" <ji...@apache.org> on 2017/05/30 12:59:04 UTC
[jira] [Resolved] (AVRO-1575) Platform specific end of line
hardcoded in unit test causes test failure on Windows.
[ https://issues.apache.org/jira/browse/AVRO-1575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nandor Kollar resolved AVRO-1575.
---------------------------------
Resolution: Duplicate
> Platform specific end of line hardcoded in unit test causes test failure on Windows.
> ------------------------------------------------------------------------------------
>
> Key: AVRO-1575
> URL: https://issues.apache.org/jira/browse/AVRO-1575
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.7.7
> Environment: Windows
> Reporter: Zoltan Farkas
> Priority: Trivial
> Attachments: Avro-TestSchemaCompatibility.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> 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)));
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)