@Test
    public void rowToJsonMapTest() {
        boolean test = false;
        if (Es6Util.rowToJsonMap(row, fieldNames, fieldTypes).toString().equals("{name={}}")) {
            test = true;
        }
        Assert.assertTrue(test);
    }
Company: www.dtstack.com

@author zhufeng
@date 2020-06-23
elasticsearch6/elasticsearch6-sink/src/test/java/com/dtstack/flink/sql/sink/elasticsearch/Es6UtilTest.java