Skip to content

Commit 9c842fd

Browse files
committed
配置文件详解:自定义属性、随机数、多环境配置等
1 parent 59849c6 commit 9c842fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Chapter2-1-1/src/test/java/com/didispace/ApplicationTests.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public class ApplicationTests {
3131

3232

3333
@Test
34-
public void getHello() throws Exception {
35-
Assert.assertEquals(blogProperties.getName(), "程序猿DD");
36-
Assert.assertEquals(blogProperties.getTitle(), "Spring Boot教程");
37-
Assert.assertEquals(blogProperties.getDesc(), "程序猿DD正在努力写《Spring Boot教程》");
34+
public void test1() throws Exception {
35+
Assert.assertEquals("程序猿DD", blogProperties.getName());
36+
Assert.assertEquals("Spring Boot教程", blogProperties.getTitle());
37+
Assert.assertEquals("程序猿DD正在努力写《Spring Boot教程》", blogProperties.getDesc());
3838

3939
log.info("随机数测试输出:");
4040
log.info("随机字符串 : " + blogProperties.getValue());

0 commit comments

Comments
 (0)