hi committers,
    I noticed that some unit tests was useless,I get CommonUtilsTest.java
just as an example.

public class CommonUtilsTest {
    private static final Logger logger =
LoggerFactory.getLogger(CommonUtilsTest.class);
    @Test
    public void getSystemEnvPath() {
        logger.info(CommonUtils.getSystemEnvPath());
        Assert.assertTrue(true);
    }
    @Test
    public void getQueueImplValue(){
        logger.info(CommonUtils.getQueueImplValue());
        Assert.assertTrue(true);
    }
    @Test
    public void isDevelopMode() {
        logger.info("develop mode: {}",CommonUtils.isDevelopMode());
        Assert.assertTrue(true);
    }
    @Test
    public void getKerberosStartupState(){
        logger.info("kerberos startup state:
{}",CommonUtils.getKerberosStartupState());
        Assert.assertTrue(true);
    }
    @Test
    public void loadKerberosConf(){
        try {
            CommonUtils.loadKerberosConf();
            Assert.assertTrue(true);
        } catch (Exception e) {
            Assert.fail("load Kerberos Conf failed");
        }
    }

    @Test
    public void getHdfsDataBasePath() {
        logger.info(HadoopUtils.getHdfsDataBasePath());
        Assert.assertTrue(true);
    }

    ...

}

there still are some none useful UT exists in DolphinScheduler project.
from now on please review code quality of unit tests carefully when merged
PR.


Best Regards
---------------
DolphinScheduler(Incubator) PPMC
Lidong Dai 代立冬
[email protected]
---------------

Reply via email to