Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A9DC0200BC7 for ; Thu, 10 Nov 2016 19:50:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A8F37160B01; Thu, 10 Nov 2016 18:50:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 04F60160B10 for ; Thu, 10 Nov 2016 19:50:08 +0100 (CET) Received: (qmail 74012 invoked by uid 500); 10 Nov 2016 18:50:08 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 74003 invoked by uid 99); 10 Nov 2016 18:50:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2016 18:50:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9C65EC028B for ; Thu, 10 Nov 2016 18:50:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id WOh8MwuAr9jZ for ; Thu, 10 Nov 2016 18:50:06 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 7C68D5FCB4 for ; Thu, 10 Nov 2016 18:50:05 +0000 (UTC) Received: (qmail 72007 invoked by uid 99); 10 Nov 2016 18:49:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2016 18:49:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 77CC9E3AA8; Thu, 10 Nov 2016 18:49:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kenn@apache.org To: commits@beam.incubator.apache.org Date: Thu, 10 Nov 2016 18:49:43 -0000 Message-Id: <1c4c0978f19a47d5adb7d76a553f15a8@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/6] incubator-beam git commit: Fix breakage in WindowedWordCountIT archived-at: Thu, 10 Nov 2016 18:50:09 -0000 Fix breakage in WindowedWordCountIT Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/e5b2f13f Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/e5b2f13f Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/e5b2f13f Branch: refs/heads/master Commit: e5b2f13f0116b0cd954b2214ca33cbf5a46a7261 Parents: ab06647 Author: Kenneth Knowles Authored: Wed Nov 9 10:22:51 2016 -0800 Committer: Kenneth Knowles Committed: Thu Nov 10 10:49:28 2016 -0800 ---------------------------------------------------------------------- .../org/apache/beam/examples/WindowedWordCountIT.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/e5b2f13f/examples/java/src/test/java/org/apache/beam/examples/WindowedWordCountIT.java ---------------------------------------------------------------------- diff --git a/examples/java/src/test/java/org/apache/beam/examples/WindowedWordCountIT.java b/examples/java/src/test/java/org/apache/beam/examples/WindowedWordCountIT.java index c78fad6..ccc2d5e 100644 --- a/examples/java/src/test/java/org/apache/beam/examples/WindowedWordCountIT.java +++ b/examples/java/src/test/java/org/apache/beam/examples/WindowedWordCountIT.java @@ -18,13 +18,14 @@ package org.apache.beam.examples; import java.io.IOException; -import org.apache.beam.examples.WindowedWordCount.Options; +import java.util.Date; import org.apache.beam.sdk.options.PipelineOptionsFactory; import org.apache.beam.sdk.options.StreamingOptions; import org.apache.beam.sdk.testing.BigqueryMatcher; import org.apache.beam.sdk.testing.StreamingIT; import org.apache.beam.sdk.testing.TestPipeline; import org.apache.beam.sdk.testing.TestPipelineOptions; +import org.apache.beam.sdk.util.IOChannelUtils; import org.junit.BeforeClass; import org.junit.Test; import org.junit.experimental.categories.Category; @@ -43,7 +44,7 @@ public class WindowedWordCountIT { * Options for the {@link WindowedWordCount} Integration Test. */ public interface WindowedWordCountITOptions - extends Options, TestPipelineOptions, StreamingOptions { + extends WindowedWordCount.Options, TestPipelineOptions, StreamingOptions { } @BeforeClass @@ -67,6 +68,14 @@ public class WindowedWordCountIT { TestPipeline.testingPipelineOptions().as(WindowedWordCountITOptions.class); options.setStreaming(isStreaming); + // Note: currently unused because the example writes to BigQuery, but WindowedWordCount.Options + // are tightly coupled to WordCount.Options, where the option is required. + options.setOutput(IOChannelUtils.resolve( + options.getTempRoot(), + String.format("WindowedWordCountIT-%tF-%