beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhalp...@apache.org
Subject [1/5] beam git commit: [BEAM-59] AvroIOTest: use absolute paths for display data
Date Tue, 02 May 2017 05:44:04 GMT
Repository: beam
Updated Branches:
  refs/heads/master 87cf88ade -> e92ead58c


[BEAM-59] AvroIOTest: use absolute paths for display data

This is future-proofing against eventual conversion to FileSystems API in which all paths
are absolute


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

Branch: refs/heads/master
Commit: de36c6e5cd3a89fce276cc455286f62df6871703
Parents: afc3921
Author: Dan Halperin <dhalperi@google.com>
Authored: Mon May 1 18:54:40 2017 -0700
Committer: Dan Halperin <dhalperi@google.com>
Committed: Mon May 1 22:43:54 2017 -0700

----------------------------------------------------------------------
 .../core/src/test/java/org/apache/beam/sdk/io/AvroIOTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/de36c6e5/sdks/java/core/src/test/java/org/apache/beam/sdk/io/AvroIOTest.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/test/java/org/apache/beam/sdk/io/AvroIOTest.java b/sdks/java/core/src/test/java/org/apache/beam/sdk/io/AvroIOTest.java
index 790555a..5991c96 100644
--- a/sdks/java/core/src/test/java/org/apache/beam/sdk/io/AvroIOTest.java
+++ b/sdks/java/core/src/test/java/org/apache/beam/sdk/io/AvroIOTest.java
@@ -552,7 +552,7 @@ public class AvroIOTest {
   @Test
   public void testWriteDisplayData() {
     AvroIO.Write<GenericClass> write = AvroIO.write(GenericClass.class)
-        .to("foo")
+        .to("/foo")
         .withShardNameTemplate("-SS-of-NN-")
         .withSuffix("bar")
         .withNumShards(100)
@@ -560,7 +560,7 @@ public class AvroIOTest {
 
     DisplayData displayData = DisplayData.from(write);
 
-    assertThat(displayData, hasDisplayItem("filePrefix", "foo"));
+    assertThat(displayData, hasDisplayItem("filePrefix", "/foo"));
     assertThat(displayData, hasDisplayItem("shardNameTemplate", "-SS-of-NN-"));
     assertThat(displayData, hasDisplayItem("fileSuffix", "bar"));
     assertThat(displayData, hasDisplayItem("schema", GenericClass.class));


Mime
View raw message