You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2022/05/03 18:19:44 UTC

[tika] branch main updated: convert dev println into actual unit test...sorry.

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

tallison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new 8aef179f4 convert dev println into actual unit test...sorry.
8aef179f4 is described below

commit 8aef179f43631f6d068e08f05edc83a5d66de23b
Author: tallison <ta...@apache.org>
AuthorDate: Tue May 3 14:19:31 2022 -0400

    convert dev println into actual unit test...sorry.
---
 .../org/apache/tika/server/core/TikaServerConfigTest.java     | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerConfigTest.java b/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerConfigTest.java
index 916c092e8..7e9f051db 100644
--- a/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerConfigTest.java
+++ b/tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/TikaServerConfigTest.java
@@ -17,6 +17,7 @@
 package org.apache.tika.server.core;
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 import java.nio.file.Path;
@@ -113,7 +114,15 @@ public class TikaServerConfigTest {
                         emptyCommandLine,
                         settings);
         TlsConfig tlsConfig = config.getTlsConfig();
-        System.out.println(tlsConfig);
+        assertTrue(tlsConfig.isActive());
+        assertFalse(tlsConfig.isClientAuthenticationWanted());
+        assertFalse(tlsConfig.isClientAuthenticationRequired());
+        assertEquals("myType", tlsConfig.getKeyStoreType());
+        assertEquals("pass", tlsConfig.getKeyStorePassword());
+        assertEquals("/something/or/other", tlsConfig.getKeyStoreFile());
+        assertEquals("myType2", tlsConfig.getTrustStoreType());
+        assertEquals("pass2", tlsConfig.getTrustStorePassword());
+        assertEquals("/something/or/other2", tlsConfig.getTrustStoreFile());
     }
 
     @Test