From 4e51e01d4491a60309ce3ccad253072473d0e4ad Mon Sep 17 00:00:00 2001 From: zhaoyang Date: Mon, 20 Oct 2014 11:16:49 +0800 Subject: [PATCH] Update LoginLogoutTest.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加testHelloworld方法中,身份验证失败后的输出异常打印信息. --- .../com/github/zhangkaitao/shiro/chapter2/LoginLogoutTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/shiro-example-chapter2/src/test/java/com/github/zhangkaitao/shiro/chapter2/LoginLogoutTest.java b/shiro-example-chapter2/src/test/java/com/github/zhangkaitao/shiro/chapter2/LoginLogoutTest.java index 0ee5b81b..5138821e 100644 --- a/shiro-example-chapter2/src/test/java/com/github/zhangkaitao/shiro/chapter2/LoginLogoutTest.java +++ b/shiro-example-chapter2/src/test/java/com/github/zhangkaitao/shiro/chapter2/LoginLogoutTest.java @@ -44,6 +44,7 @@ public void testHelloworld() { subject.login(token); } catch (AuthenticationException e) { //5、身份验证失败 + e.printStackTrace(); } Assert.assertEquals(true, subject.isAuthenticated()); //断言用户已经登录