Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 520A0184A6 for ; Wed, 23 Mar 2016 10:59:26 +0000 (UTC) Received: (qmail 76435 invoked by uid 500); 23 Mar 2016 10:59:26 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 76357 invoked by uid 500); 23 Mar 2016 10:59:25 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 76313 invoked by uid 99); 23 Mar 2016 10:59:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Mar 2016 10:59:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B4AB62C14F3 for ; Wed, 23 Mar 2016 10:59:25 +0000 (UTC) Date: Wed, 23 Mar 2016 10:59:25 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-2445) Add tests for HadoopOutputFormats MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-2445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208228#comment-15208228 ] ASF GitHub Bot commented on FLINK-2445: --------------------------------------- Github user mliesenberg commented on a diff in the pull request: https://github.com/apache/flink/pull/1625#discussion_r57140858 --- Diff: flink-java/src/test/java/org/apache/flink/api/java/hadoop/mapred/HadoopOutputFormatTest.java --- @@ -0,0 +1,216 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.flink.api.java.hadoop.mapred; + +import org.apache.flink.api.java.tuple.Tuple2; +import org.apache.hadoop.conf.Configurable; +import org.apache.hadoop.conf.Configuration; +import org.apache.hadoop.fs.FileSystem; +import org.apache.hadoop.mapred.*; +import org.apache.hadoop.util.Progressable; +import org.junit.Test; +import org.mockito.Matchers; + +import java.io.IOException; + +import static org.mockito.Matchers.anyString; +import static org.mockito.Mockito.*; + +public class HadoopOutputFormatTest { + + @Test + public void testOpen() throws Exception { + + OutputFormat dummyOutputFormat = mock(DummyOutputFormat.class); + DummyOutputCommitter outputCommitter = mock(DummyOutputCommitter.class); + JobConf jobConf = mock(JobConf.class); --- End diff -- I suppose that applies to the `JobConf` in `testFinalizeGlobal` as well? Is there a way for me to test that locally? > Add tests for HadoopOutputFormats > --------------------------------- > > Key: FLINK-2445 > URL: https://issues.apache.org/jira/browse/FLINK-2445 > Project: Flink > Issue Type: Test > Components: Hadoop Compatibility, Tests > Affects Versions: 0.9.1, 0.10.0 > Reporter: Fabian Hueske > Assignee: Martin Liesenberg > Labels: starter > > The HadoopOutputFormats and HadoopOutputFormatBase classes are not sufficiently covered by unit tests. > We need tests that ensure that the methods of the wrapped Hadoop OutputFormats are correctly called. -- This message was sent by Atlassian JIRA (v6.3.4#6332)