@Before
    public void setUp() {
        MockitoAnnotations.initMocks(this);
        fieldInfo = new FieldInfo();
        fieldInfo.setTypeInformation(typeInformation);
        fieldInfo.setTable("mytable");
        fieldInfo.setFieldName("mytable");
        outFieldInfoList.add(0, fieldInfo);
        JoinInfo joinInfo = new JoinInfo();
        joinInfo.setLeftTableAlias("mytable");
        joinInfo.setLeftIsSideTable(true);
        SqlNode sqlNode = mock(SqlNode.class);
        joinInfo.setCondition(sqlNode);
        try {
            allSideInfo = new Elasticsearch6AllSideInfo(rowTypeInfo, joinInfo, outFieldInfoList, sideTableInfo);
        } catch (Exception ignored) {
        }
        JoinInfo joinInfo1 = new JoinInfo();
        joinInfo1.setRightTableAlias("mytable");
        joinInfo1.setLeftIsSideTable(true);
        try {
            allSideInfo = new Elasticsearch6AllSideInfo(rowTypeInfo, joinInfo1, outFieldInfoList, sideTableInfo);
        } catch (Exception ignored) {
        }
        JoinInfo joinInfo2 = new JoinInfo();
        try {
            allSideInfo = new Elasticsearch6AllSideInfo(rowTypeInfo, joinInfo2, outFieldInfoList, sideTableInfo);
        } catch (Exception ignored) {
        }
    }
Company: www.dtstack.com

@author zhufeng
@date 2020-07-02
elasticsearch6/elasticsearch6-side/elasticsearch6-all-side/src/test/java/com/dtstack/flink/sql/side/elasticsearch6/Elasticsearch6AllSideInfoTest.java