42 lines
1.4 KiB
Java
42 lines
1.4 KiB
Java
package com.suisung.mall.account;
|
|
|
|
import com.suisung.mall.common.constant.ConfigConstant;
|
|
import com.suisung.mall.common.constant.RedisConstant;
|
|
import com.suisung.mall.core.consts.ConstantRedis;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.junit.runner.RunWith;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
@RunWith(SpringRunner.class)
|
|
@SpringBootTest
|
|
class MallAccountApplicationTests {
|
|
|
|
@Test
|
|
void contextLoads() {
|
|
System.out.println(ConfigConstant.URL_BASE);
|
|
System.out.println(ConfigConstant.URL_STATIC);
|
|
System.out.println(ConfigConstant.URL_PC);
|
|
System.out.println(ConfigConstant.URL_H5);
|
|
System.out.println(ConfigConstant.URL_ADMIN);
|
|
System.out.println(ConfigConstant.URL_API_ADMIN);
|
|
System.out.println(ConfigConstant.URL_API_MOBILE);
|
|
System.out.println(ConfigConstant.STATIC_FILE_PATH);
|
|
System.out.println(ConfigConstant.MALL_SOCKET_URL);
|
|
System.out.println(ConfigConstant.VERSION);
|
|
System.out.println(ConstantRedis.Cache_NameSpace);
|
|
System.out.println(RedisConstant.Verifycode_NameSpace);
|
|
System.out.println(ConfigConstant.MAX_LIST_NUM);
|
|
}
|
|
|
|
@Value(ConfigConstant.VERSION)
|
|
private String variable;
|
|
|
|
@Test
|
|
public void function() {
|
|
System.out.println(variable);
|
|
}
|
|
|
|
}
|