From 6f6979c30f60e225dc98224c69fea17dde34a13d Mon Sep 17 00:00:00 2001 From: teg Date: Tue, 25 Jul 2023 09:01:56 +0200 Subject: [PATCH] Two unit tests has been changed into manual run integration test. --- .../solrwayback/interfaces/ArcSourceTest.java | 32 ++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/src/test/java/dk/kb/netarchivesuite/solrwayback/interfaces/ArcSourceTest.java b/src/test/java/dk/kb/netarchivesuite/solrwayback/interfaces/ArcSourceTest.java index 1de7edd5..1c677e67 100644 --- a/src/test/java/dk/kb/netarchivesuite/solrwayback/interfaces/ArcSourceTest.java +++ b/src/test/java/dk/kb/netarchivesuite/solrwayback/interfaces/ArcSourceTest.java @@ -25,6 +25,30 @@ */ public class ArcSourceTest { + + /* + * These tests depend on external resource and one of them is not on net anymore. + * The two test has been changed into a manual integration test. + * + */ + public static void main(String[] args) { + try { + testHTTPSURL(); + testHTTSURL(); + + } + catch(Exception e) { + System.out.println("Integration test error for testHTTPSURL() or testHTTSURL()"); + e.printStackTrace(); + + } + + + } + + + + @Test public void testPath() throws IOException { String known = Objects.requireNonNull(Thread.currentThread().getContextClassLoader().getResource("logback-test.xml")).getPath(); @@ -46,8 +70,8 @@ public void testFileURL() throws IOException { assertTrue("Getting file system content from '" + known + " should work", content.startsWith("