提交 | 用户 | 时间
|
e7c126
|
1 |
package com.xxl.job.admin.util; |
H |
2 |
|
|
3 |
import com.xxl.job.admin.core.util.I18nUtil; |
|
4 |
import org.junit.jupiter.api.Test; |
|
5 |
import org.slf4j.Logger; |
|
6 |
import org.slf4j.LoggerFactory; |
|
7 |
import org.springframework.boot.test.context.SpringBootTest; |
|
8 |
|
|
9 |
/** |
|
10 |
* email util test |
|
11 |
* |
|
12 |
* @author xuxueli 2017-12-22 17:16:23 |
|
13 |
*/ |
|
14 |
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) |
|
15 |
public class I18nUtilTest { |
|
16 |
private static Logger logger = LoggerFactory.getLogger(I18nUtilTest.class); |
|
17 |
|
|
18 |
@Test |
|
19 |
public void test(){ |
|
20 |
logger.info(I18nUtil.getString("admin_name")); |
|
21 |
logger.info(I18nUtil.getMultString("admin_name", "admin_name_full")); |
|
22 |
logger.info(I18nUtil.getMultString()); |
|
23 |
} |
|
24 |
|
|
25 |
} |