|
|
@ -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);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|