@Test
    public void testReadSQL() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
        String result = "this is a test";
        String sqlPath = "/Users/wtz4680/Desktop/ideaProject/flinkStreamSQL/localTest/src/test/resources/test.txt";
        Class<LocalTest> testClass = LocalTest.class;
        Method method = testClass.getDeclaredMethod("readSQL", String.class);
        method.setAccessible(true);
        Assert.assertEquals(result, method.invoke(new LocalTest(), sqlPath));
    }
@author tiezhu
@Date 2020/7/8 Wed
Company dtstack
localTest/src/test/java/com/dtstack/flink/sql/localTest/TestLocalTest.java