add EnvUtilTest test case (#751)

* add BeanUtilTest test case

* add BeanUtilTest test case

* add BeanUtilTest test case

* add ClassUtilTest test case

* add ConfigExecutorTest test case

* Revert "add ConfigExecutorTest test case"

This reverts commit ffc00ff4

* add ConfigExecutorTest test case

* add EnvUtilTest test case

* add ConfigExecutorTest test case
pull/754/head
Gdk666 2 years ago committed by GitHub
parent a2c4975b1f
commit b09c1b52f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,8 +17,24 @@
package cn.hippo4j.config.toolkit;
import cn.hippo4j.common.toolkit.Assert;
import cn.hutool.core.util.StrUtil;
import org.junit.Test;
/**
* EnvUtil Test
*/
public class EnvUtilTest {
@Test
public void getHippo4JHomeTest() {
String hippo4JHome = EnvUtil.getHippo4JHome();
Assert.isTrue(StrUtil.isNotBlank(hippo4JHome));
}
@Test
public void getStandaloneMode() {
boolean standaloneMode = EnvUtil.getStandaloneMode();
Assert.isTrue(!standaloneMode);
}
}

Loading…
Cancel
Save