Repository: incubator-beam Updated Branches: refs/heads/master fd049b52e -> d75e9df50
[BEAM-167] Add comment for the test explaining why concatenation of gzip files is valid Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/29dfec9d Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/29dfec9d Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/29dfec9d Branch: refs/heads/master Commit: 29dfec9d010956888ac8125f90efc383002f874f Parents: abc397f Author: Luke Cwik <lc...@google.com> Authored: Mon Apr 4 13:35:25 2016 -0700 Committer: Luke Cwik <lc...@google.com> Committed: Mon Apr 4 14:40:07 2016 -0700 ---------------------------------------------------------------------- .../com/google/cloud/dataflow/sdk/io/CompressedSourceTest.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/29dfec9d/sdks/java/core/src/test/java/com/google/cloud/dataflow/sdk/io/CompressedSourceTest.java ---------------------------------------------------------------------- diff --git a/sdks/java/core/src/test/java/com/google/cloud/dataflow/sdk/io/CompressedSourceTest.java b/sdks/java/core/src/test/java/com/google/cloud/dataflow/sdk/io/CompressedSourceTest.java index f63a128..3de0513 100644 --- a/sdks/java/core/src/test/java/com/google/cloud/dataflow/sdk/io/CompressedSourceTest.java +++ b/sdks/java/core/src/test/java/com/google/cloud/dataflow/sdk/io/CompressedSourceTest.java @@ -116,6 +116,12 @@ public class CompressedSourceTest { return res; } + /** + * Test a concatenation of gzip files is correctly decompressed. + * + * <p>A concatenation of gzip files as one file is a valid gzip file and should decompress + * to be the concatenation of those individual files. + */ @Test public void testReadConcatenatedGzip() throws IOException { byte[] header = "a,b,c\n".getBytes(StandardCharsets.UTF_8);