add EnvUtilTest test case

pull/750/head
guoz 2 years ago
parent f3aa0b878b
commit 6ebdf9ae63

@ -17,8 +17,24 @@
package cn.hippo4j.config.toolkit; package cn.hippo4j.config.toolkit;
import cn.hippo4j.common.toolkit.Assert;
import cn.hutool.core.util.StrUtil;
import org.junit.Test;
/** /**
* EnvUtil Test * EnvUtil Test
*/ */
public class EnvUtilTest { 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