You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2020/01/13 16:56:04 UTC

[tomcat] branch master updated: Forgot test update

This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/master by this push:
     new 23b3d8d  Forgot test update
23b3d8d is described below

commit 23b3d8d789eea08a25e22e1fdd4652ec0df67063
Author: remm <re...@apache.org>
AuthorDate: Mon Jan 13 17:55:49 2020 +0100

    Forgot test update
---
 test/org/apache/catalina/realm/TestGenericPrincipal.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test/org/apache/catalina/realm/TestGenericPrincipal.java b/test/org/apache/catalina/realm/TestGenericPrincipal.java
index f43fc24..5a99415 100644
--- a/test/org/apache/catalina/realm/TestGenericPrincipal.java
+++ b/test/org/apache/catalina/realm/TestGenericPrincipal.java
@@ -32,7 +32,6 @@ import org.junit.Test;
 public class TestGenericPrincipal {
 
     private static final String USER = "user";
-    private static final String PASSWORD = "pwd";
     private static final List<String> ROLES = Collections.unmodifiableList(
             Arrays.asList(new String[] { "ROLE1", "ROLE2" }));
     private static final TesterPrincipal PRINCIPAL = new TesterPrincipal("Principal");
@@ -41,19 +40,19 @@ public class TestGenericPrincipal {
 
     @Test
     public void testSerialize01() throws ClassNotFoundException, IOException {
-        GenericPrincipal gpIn = new GenericPrincipal(USER, PASSWORD, ROLES);
+        GenericPrincipal gpIn = new GenericPrincipal(USER, ROLES);
         doTest(gpIn);
     }
 
     @Test
     public void testSerialize02() throws ClassNotFoundException, IOException {
-        GenericPrincipal gpIn = new GenericPrincipal(USER, PASSWORD, ROLES, PRINCIPAL);
+        GenericPrincipal gpIn = new GenericPrincipal(USER, ROLES, PRINCIPAL);
         doTest(gpIn);
     }
 
     @Test
     public void testSerialize03() throws ClassNotFoundException, IOException {
-        GenericPrincipal gpIn = new GenericPrincipal(USER, PASSWORD, ROLES, PRINCIPAL_NON_SERIALIZABLE);
+        GenericPrincipal gpIn = new GenericPrincipal(USER, ROLES, PRINCIPAL_NON_SERIALIZABLE);
         doTest(gpIn);
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org