fluo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwa...@apache.org
Subject [incubator-fluo] branch master updated: fixes - #856 Jenkins Test fix (#882)
Date Tue, 11 Jul 2017 14:51:15 GMT
This is an automated email from the ASF dual-hosted git repository.

mwalch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-fluo.git


The following commit(s) were added to refs/heads/master by this push:
     new 3302fd6  fixes - #856 Jenkins Test fix (#882)
3302fd6 is described below

commit 3302fd6705cbb1e252ab9dfacf7bde2469c9330f
Author: Christopher McTague <cjmctague@apache.org>
AuthorDate: Tue Jul 11 10:51:13 2017 -0400

    fixes - #856 Jenkins Test fix (#882)
---
 modules/api/src/test/java/org/apache/fluo/api/data/BytesTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/api/src/test/java/org/apache/fluo/api/data/BytesTest.java b/modules/api/src/test/java/org/apache/fluo/api/data/BytesTest.java
index aa5c2b6..142cc44 100644
--- a/modules/api/src/test/java/org/apache/fluo/api/data/BytesTest.java
+++ b/modules/api/src/test/java/org/apache/fluo/api/data/BytesTest.java
@@ -15,8 +15,6 @@
 
 package org.apache.fluo.api.data;
 
-import static org.junit.Assert.fail;
-
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
 import java.nio.ByteBuffer;
@@ -27,6 +25,8 @@ import java.util.Arrays;
 import org.junit.Assert;
 import org.junit.Test;
 
+import static org.junit.Assert.fail;
+
 /**
  * Unit test for {@link Bytes}
  */
@@ -331,7 +331,7 @@ public class BytesTest {
     String end = "efghi"; // 5 chars, 5 bytes
     Assert.assertEquals(11, begin.length() + mid1.length() + mid2.length() + end.length());
 
-    byte[] copyFrom = (begin + mid1 + mid2 + end).getBytes();
+    byte[] copyFrom = (begin + mid1 + mid2 + end).getBytes(StandardCharsets.UTF_8);
     //@formatter:off
     // [ a,  b,  c,              †,                    𝔊,   e,   f,   g,   h,   i]
     // [97, 98, 99, -30, -128, -96, -16, -99, -108, -118, 101, 102, 103, 104, 105]

-- 
To stop receiving notification emails like this one, please contact
['"commits@fluo.apache.org" <commits@fluo.apache.org>'].

Mime
View raw message