avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject avro git commit: AVRO-2066 Wrong schema file used in one TestSpecificCompiler test case
Date Fri, 01 Sep 2017 13:43:36 GMT
Repository: avro
Updated Branches:
  refs/heads/branch-1.8 2f6eb2f4e -> 69fc84086


AVRO-2066 Wrong schema file used in one TestSpecificCompiler test case

Signed-off-by: Sean Busbey <busbey@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/69fc8408
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/69fc8408
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/69fc8408

Branch: refs/heads/branch-1.8
Commit: 69fc840866397ce6eef04649f1373d5183b95012
Parents: 2f6eb2f
Author: Nandor Kollar <nkollar@cloudera.com>
Authored: Fri Sep 1 06:30:21 2017 -0700
Committer: Sean Busbey <busbey@apache.org>
Committed: Fri Sep 1 06:37:59 2017 -0700

----------------------------------------------------------------------
 .../org/apache/avro/compiler/specific/TestSpecificCompiler.java   | 2 +-
 .../java/org/apache/avro/specific/TestSpecificRecordBuilder.java  | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/avro/blob/69fc8408/lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
b/lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
index 07328d3..35d53b5 100644
--- a/lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
+++ b/lang/java/compiler/src/test/java/org/apache/avro/compiler/specific/TestSpecificCompiler.java
@@ -470,7 +470,7 @@ public class TestSpecificCompiler {
   @Test
   public void testLogicalTypesWithMultipleFields() throws Exception {
     Schema logicalTypesWithMultipleFields = new Schema.Parser().parse(
-        new File("src/test/resources/simple_record.avsc"));
+        new File("src/test/resources/logical_types_with_multiple_fields.avsc"));
     assertCompilesWithJavaCompiler(
         new SpecificCompiler(logicalTypesWithMultipleFields).compile());
   }

http://git-wip-us.apache.org/repos/asf/avro/blob/69fc8408/lang/java/ipc/src/test/java/org/apache/avro/specific/TestSpecificRecordBuilder.java
----------------------------------------------------------------------
diff --git a/lang/java/ipc/src/test/java/org/apache/avro/specific/TestSpecificRecordBuilder.java
b/lang/java/ipc/src/test/java/org/apache/avro/specific/TestSpecificRecordBuilder.java
index 7305757..bae1dda 100644
--- a/lang/java/ipc/src/test/java/org/apache/avro/specific/TestSpecificRecordBuilder.java
+++ b/lang/java/ipc/src/test/java/org/apache/avro/specific/TestSpecificRecordBuilder.java
@@ -23,8 +23,6 @@ import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 
-import junit.framework.Assert;
-
 import org.apache.avro.AvroRuntimeException;
 import org.apache.avro.Foo;
 import org.apache.avro.Interop;
@@ -34,6 +32,7 @@ import org.apache.avro.Node;
 import org.apache.avro.ipc.specific.PageView;
 import org.apache.avro.ipc.specific.Person;
 import org.apache.avro.ipc.specific.ProductPage;
+import org.junit.Assert;
 import org.junit.Ignore;
 import org.junit.Test;
 


Mime
View raw message