@Test
    public void es6UtilTest() {
        Integer test1 = 1;
        String targetType = "smallint";
        Es6Util.getTarget(test1, targetType);
        String targetType2 = "long";
        Es6Util.getTarget(test1, targetType2);
        Boolean test2 = true;
        String targetType3 = "boolean";
        Es6Util.getTarget(test2, targetType3);
        Byte test3 = 1;
        String targetType4 = "blob";
        Es6Util.getTarget(test3, targetType4);
        String test4 = "name";
        String targetType5 = "varchar";
        Es6Util.getTarget(test4, targetType5);
        Float test5 = 1.0f;
        String targetType6 = "real";
        Es6Util.getTarget(test5, targetType6);
        BigDecimal test7 = new BigDecimal("1234567890");
        String targetType8 = "decimal";
        Es6Util.getTarget(test7, targetType8);
        java.sql.Date date = new java.sql.Date(System.currentTimeMillis());
        String targetType9 = "date";
        Es6Util.getTarget(date, targetType9);
        Timestamp timestamp = new Timestamp(System.currentTimeMillis());
        String targetType10 = "timestamp";
        Es6Util.getTarget(timestamp, targetType10);
    }
Company: www.dtstack.com

@author zhufeng
@date 2020-07-02
elasticsearch6/elasticsearch6-side/elasticsearch6-side-core/src/test/java/com/dtstack/flink/sql/side/elasticsearch6/util/Es6UtilTest.java