This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
web-sketch-webskt-query-agent/src/test/java/com/mesasoft/cn/config/SettingConfigTest.java

28 lines
768 B
Java
Raw Normal View History

2022-08-09 16:54:16 +08:00
package com.mesasoft.cn.config;
import com.mesasoft.cn.WebSketchApplication;
import com.mesasoft.cn.WebSketchApplicationTest;
2022-08-09 16:54:16 +08:00
import com.mesasoft.cn.modules.constant.ConfigConsts;
import org.junit.Test;
import java.util.regex.Pattern;
/**
* @author pantao
* @since 2018/1/26
*/
public class SettingConfigTest {
@Test
public void testFileSuffixPattern() {
WebSketchApplicationTest.setSettings();
assert Pattern.compile(WebSketchApplication.settings.getStringUseEval(ConfigConsts.FILE_SUFFIX_MATCH_OF_SETTING)).matcher("jpg").matches();
2022-08-09 16:54:16 +08:00
}
@Test
public void testGetStoragePath() {
WebSketchApplicationTest.setSettings();
2022-08-09 16:54:16 +08:00
System.out.println(SettingConfig.getStoragePath(ConfigConsts.TOKEN_OF_SETTINGS));
}
}