From 9c842fd511f18aaab2fdbfd524022fac949f7725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=8C=BFDD?= Date: Sun, 8 May 2016 20:04:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E8=AF=A6?= =?UTF-8?q?=E8=A7=A3=EF=BC=9A=E8=87=AA=E5=AE=9A=E4=B9=89=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E3=80=81=E9=9A=8F=E6=9C=BA=E6=95=B0=E3=80=81=E5=A4=9A=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/test/java/com/didispace/ApplicationTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Chapter2-1-1/src/test/java/com/didispace/ApplicationTests.java b/Chapter2-1-1/src/test/java/com/didispace/ApplicationTests.java index 4b4b6ed..0ad7247 100755 --- a/Chapter2-1-1/src/test/java/com/didispace/ApplicationTests.java +++ b/Chapter2-1-1/src/test/java/com/didispace/ApplicationTests.java @@ -31,10 +31,10 @@ public class ApplicationTests { @Test - public void getHello() throws Exception { - Assert.assertEquals(blogProperties.getName(), "程序猿DD"); - Assert.assertEquals(blogProperties.getTitle(), "Spring Boot教程"); - Assert.assertEquals(blogProperties.getDesc(), "程序猿DD正在努力写《Spring Boot教程》"); + public void test1() throws Exception { + Assert.assertEquals("程序猿DD", blogProperties.getName()); + Assert.assertEquals("Spring Boot教程", blogProperties.getTitle()); + Assert.assertEquals("程序猿DD正在努力写《Spring Boot教程》", blogProperties.getDesc()); log.info("随机数测试输出:"); log.info("随机字符串 : " + blogProperties.getValue());