浏览代码

Expand test coverage.

Ben Alex 21 年之前
父节点
当前提交
b4273c62b7
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      core/src/test/java/org/acegisecurity/adapters/PrincipalAcegiUserTokenTests.java

+ 4 - 0
core/src/test/java/org/acegisecurity/adapters/PrincipalAcegiUserTokenTests.java

@@ -58,6 +58,10 @@ public class PrincipalAcegiUserTokenTests extends TestCase {
         assertEquals("my_password".hashCode(), token.getKeyHash());
     }
 
+    public void testNoArgsConstructor() {
+        PrincipalAcegiUserToken token = new PrincipalAcegiUserToken();
+    }
+
     public void testObjectsEquals() throws Exception {
         PrincipalAcegiUserToken token1 = new PrincipalAcegiUserToken("my_password",
                 "Test", "Password",