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 3CFEC200B91 for ; Thu, 29 Sep 2016 19:29:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3BB97160AE4; Thu, 29 Sep 2016 17:29:05 +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 82AB4160AC1 for ; Thu, 29 Sep 2016 19:29:04 +0200 (CEST) Received: (qmail 96029 invoked by uid 500); 29 Sep 2016 17:29:03 -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 96019 invoked by uid 99); 29 Sep 2016 17:29:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2016 17:29:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1493C1806A1 for ; Thu, 29 Sep 2016 17:29:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 3We2nZACP10w for ; Thu, 29 Sep 2016 17:29:02 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id BF2455FE07 for ; Thu, 29 Sep 2016 17:29:01 +0000 (UTC) Received: (qmail 95989 invoked by uid 99); 29 Sep 2016 17:29:01 -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, 29 Sep 2016 17:29:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2923FE08AF; Thu, 29 Sep 2016 17:29:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dhalperi@apache.org To: commits@beam.incubator.apache.org Date: Thu, 29 Sep 2016 17:29:02 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/2] incubator-beam git commit: BoundedReadFromUnboundedSourceTest: remove unused code archived-at: Thu, 29 Sep 2016 17:29:05 -0000 BoundedReadFromUnboundedSourceTest: remove unused code Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/242fde7d Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/242fde7d Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/242fde7d Branch: refs/heads/master Commit: 242fde7d075b02adabba4306dc68c1d84b843c6d Parents: efb2b83 Author: Dan Halperin Authored: Thu Sep 29 09:42:31 2016 -0700 Committer: Dan Halperin Committed: Thu Sep 29 10:28:50 2016 -0700 ---------------------------------------------------------------------- .../beam/sdk/io/BoundedReadFromUnboundedSourceTest.java | 10 ---------- 1 file changed, 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/242fde7d/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java ---------------------------------------------------------------------- diff --git a/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java b/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java index 7bf0f35..5a58519 100644 --- a/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java +++ b/sdks/java/core/src/test/java/org/apache/beam/sdk/io/BoundedReadFromUnboundedSourceTest.java @@ -18,7 +18,6 @@ package org.apache.beam.sdk.io; import static org.apache.beam.sdk.transforms.display.DisplayDataMatchers.includesDisplayDataFrom; -import static org.hamcrest.Matchers.containsInAnyOrder; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; @@ -46,7 +45,6 @@ import org.junit.runners.JUnit4; @RunWith(JUnit4.class) public class BoundedReadFromUnboundedSourceTest implements Serializable{ private static final int NUM_RECORDS = 100; - private static List finalizeTracker = null; @Test @Category(RunnableOnService.class) @@ -109,9 +107,6 @@ public class BoundedReadFromUnboundedSourceTest implements Serializable{ for (int i = 0; i < values.size(); i++) { assertEquals(i, (int) values.get(i)); } - if (finalizeTracker != null) { - assertThat(finalizeTracker, containsInAnyOrder(values.size() - 1)); - } return null; } } @@ -128,11 +123,6 @@ public class BoundedReadFromUnboundedSourceTest implements Serializable{ ? p.apply(Read.from(source).withMaxReadTime(Duration.millis(200))) : p.apply(Read.from(source).withMaxNumRecords(NUM_RECORDS)); - List> expectedOutput = new ArrayList<>(); - for (int i = 0; i < NUM_RECORDS; i++) { - expectedOutput.add(KV.of(0, i)); - } - // Because some of the NUM_RECORDS elements read are dupes, the final output // will only have output from 0 to n where n < NUM_RECORDS. PAssert.that(output).satisfies(new Checker(dedup, timeBound));