Browse Source

Expand test coverage.

Ben Alex 21 năm trước cách đây
mục cha
commit
b4273c62b7

+ 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",