avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [avro] 03/04: Using Assert static
Date Fri, 16 Aug 2019 18:37:56 GMT
This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git

commit a2eae61d7fda7156176cae6ef9acd2e6f8a8e335
Author: Juan Sebastián Urrego Escobar <juancho088@gmail.com>
AuthorDate: Thu Aug 1 20:59:03 2019 +0200

    Using Assert static
---
 lang/java/avro/src/test/java/org/apache/avro/io/TestEncoders.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lang/java/avro/src/test/java/org/apache/avro/io/TestEncoders.java b/lang/java/avro/src/test/java/org/apache/avro/io/TestEncoders.java
index 9f0a585..4bf8b7c 100644
--- a/lang/java/avro/src/test/java/org/apache/avro/io/TestEncoders.java
+++ b/lang/java/avro/src/test/java/org/apache/avro/io/TestEncoders.java
@@ -47,7 +47,6 @@ import java.nio.file.StandardOpenOption;
 import static java.util.Arrays.asList;
 import static org.hamcrest.Matchers.equalTo;
 import static org.hamcrest.Matchers.is;
-import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertThat;
 
 public class TestEncoders {
@@ -138,7 +137,7 @@ public class TestEncoders {
     byte[] avroBytes = fromJsonToAvro(value, schema);
     ObjectMapper mapper = new ObjectMapper();
 
-    assertEquals(mapper.readTree("{\"b\":\"myVal\",\"a\":1}"),
+    Assert.assertEquals(mapper.readTree("{\"b\":\"myVal\",\"a\":1}"),
       mapper.readTree(fromAvroToJson(avroBytes, schema, false)));
   }
 
@@ -151,7 +150,7 @@ public class TestEncoders {
     byte[] avroBytes = fromJsonToAvro(value, schema);
     ObjectMapper mapper = new ObjectMapper();
 
-    assertEquals(mapper.readTree("{\"b\":{\"string\":\"myVal\"},\"a\":1}"),
+    Assert.assertEquals(mapper.readTree("{\"b\":{\"string\":\"myVal\"},\"a\":1}"),
       mapper.readTree(fromAvroToJson(avroBytes, schema, true)));
   }
 


Mime
View raw message