Github user rmetzger commented on a diff in the pull request:

    https://github.com/apache/bahir-flink/pull/17#discussion_r128922017
  
    --- Diff: 
flink-connector-kudu/src/test/java/es/accenture/flink/Job/JobBatchSinkTest.java 
---
    @@ -0,0 +1,158 @@
    +package es.accenture.flink.Job;
    +
    +import es.accenture.flink.Sink.KuduOutputFormat;
    +import es.accenture.flink.Sources.KuduInputFormat;
    +import es.accenture.flink.Utils.Exceptions.KuduClientException;
    +import es.accenture.flink.Utils.Exceptions.KuduTableException;
    +import es.accenture.flink.Utils.RowSerializable;
    +import es.accenture.flink.Utils.Utils;
    +import org.apache.flink.api.common.typeinfo.TypeInformation;
    +import org.apache.flink.api.java.DataSet;
    +import org.apache.flink.api.java.ExecutionEnvironment;
    +import org.apache.kudu.client.KuduClient;
    +import org.apache.kudu.client.KuduException;
    +import org.junit.After;
    +import org.junit.Before;
    +import org.junit.Test;
    +
    +public class JobBatchSinkTest {
    +
    +    /*class vars*/
    +    private String KUDU_MASTER;
    +    private String TABLE_NAME;
    +    private String TABLE_NAME2;
    +    private String[] columnNames;
    +    private Utils utils;
    +    private KuduClient client;
    +    private ExecutionEnvironment env;
    +    private boolean singleton = true;
    +    private DataSet<RowSerializable> input = null;
    +    private Integer MODE;
    +
    +
    +    /**
    +     * Function to set program's variables
    +     * @throws Exception excepcion
    +     */
    +    @Before
    +    public void setUp() throws Exception {
    +        KUDU_MASTER = System.getProperty("kuduMaster", "localhost");
    +        TABLE_NAME = System.getProperty("tableName", "Table_1");
    +        TABLE_NAME2 = System.getProperty("tableName", "Table_2");
    +        MODE = KuduOutputFormat.CREATE;
    +        columnNames= new String[2];
    +        columnNames[0] = "key";
    +        columnNames[1] = "value";
    +        utils=new Utils("localhost");
    +        client = new KuduClient.KuduClientBuilder(KUDU_MASTER).build();
    +
    +
    +    }
    --- End diff --
    
    empty lines.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to