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()); //断言用户已经登录