diff options
author | Dominik Stadler <centic@apache.org> | 2020-03-08 20:17:08 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2020-03-08 20:17:08 +0000 |
commit | 77fbcb788d818e8042b54b63c0c9f2bbf42856a4 (patch) | |
tree | 20783568d4c78d25b8c126b37de9ef8f797f406e /src/scratchpad | |
parent | a7d96dcb734ce2ea24e1d9670774f116c1f937d5 (diff) | |
download | poi-77fbcb788d818e8042b54b63c0c9f2bbf42856a4.tar.gz poi-77fbcb788d818e8042b54b63c0c9f2bbf42856a4.zip |
Try to use https for poi.apache.org everywhere
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1874981 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad')
3 files changed, 13 insertions, 13 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hpbf/extractor/TestPublisherTextExtractor.java b/src/scratchpad/testcases/org/apache/poi/hpbf/extractor/TestPublisherTextExtractor.java index c6353dae6d..09dca86a51 100644 --- a/src/scratchpad/testcases/org/apache/poi/hpbf/extractor/TestPublisherTextExtractor.java +++ b/src/scratchpad/testcases/org/apache/poi/hpbf/extractor/TestPublisherTextExtractor.java @@ -32,7 +32,7 @@ import org.junit.Test; public final class TestPublisherTextExtractor { private static final POIDataSamples _samples = POIDataSamples.getPublisherInstance(); - private static final String SAMPLE_TEXT = + private static final String SAMPLE_TEXT = "This is some text on the first page\n" + "It\u2019s in times new roman, font size 10, all normal\n" + "" + @@ -154,7 +154,7 @@ public final class TestPublisherTextExtractor { */ @Test public void testWithHyperlinks() throws Exception { - InputStream linkAt = _samples.openResourceAsStream("LinkAt10.pub"); + InputStream linkAt = _samples.openResourceAsStream("LinkAt10.pub"); HPBFDocument doc = new HPBFDocument(linkAt); PublisherTextExtractor ext = new PublisherTextExtractor(doc); diff --git a/src/scratchpad/testcases/org/apache/poi/hpbf/model/TestQuillContents.java b/src/scratchpad/testcases/org/apache/poi/hpbf/model/TestQuillContents.java index 31349cdbc9..d386664dce 100644 --- a/src/scratchpad/testcases/org/apache/poi/hpbf/model/TestQuillContents.java +++ b/src/scratchpad/testcases/org/apache/poi/hpbf/model/TestQuillContents.java @@ -68,7 +68,7 @@ public final class TestQuillContents { assertEquals("STSH", qc.getBits()[3].getThingType()); assertEquals("STSH", qc.getBits()[3].getBitType()); assertEquals(2, qc.getBits()[3].getOptA()); - + doc.close(); } @@ -85,7 +85,7 @@ public final class TestQuillContents { String t = text.getText(); assertStartsWith(t, "This is some text on the first page"); assertEndsWith(t, "Within doc to page 1\r"); - + doc.close(); } @@ -148,7 +148,7 @@ public final class TestQuillContents { assertEquals(0x22000000, plc12.getPlcValB()[0]); assertEquals(0x05, plc12.getPlcValA()[1]); assertEquals(0x04, plc12.getPlcValB()[1]); - + doc.close(); } @@ -253,7 +253,7 @@ public final class TestQuillContents { assertEquals(0x000004, plc16.getPlcValB()[4]); assertEquals(0x000004, plc16.getPlcValA()[5]); assertEquals(0x000004, plc16.getPlcValB()[5]); - + doc.close(); } @@ -272,7 +272,7 @@ public final class TestQuillContents { assertEquals(0, plc18.getNumberOfHyperlinks()); assertEquals(0, plc18.getTextStartAt(0)); assertEquals(601, plc18.getAllTextEndAt()); - + doc.close(); } @@ -347,7 +347,7 @@ public final class TestQuillContents { assertEquals(10, hlBit.getTextStartAt(0)); assertEquals(15, hlBit.getAllTextEndAt()); assertEquals("http://poi.apache.org/", hlBit.getHyperlink(0)); - + doc.close(); } diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHyperlink.java b/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHyperlink.java index 73cef448f2..59a54dfe2e 100644 --- a/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHyperlink.java +++ b/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHyperlink.java @@ -91,7 +91,7 @@ public final class TestHyperlink { assertEquals("Open Jakarta POI HSSF module test ", links.get(0).getLabel()); assertEquals("http://jakarta.apache.org/poi/hssf/", links.get(0).getAddress()); assertEquals("Jakarta HSSF", rawText.substring(links.get(0).getStartIndex(), links.get(0).getEndIndex()-1)); - + ppt.close(); } @@ -115,7 +115,7 @@ public final class TestHyperlink { hl3.linkToSlide(slide1); HSLFTextRun r4 = ppt1.createSlide().createTextBox().setText("page4"); HSLFHyperlink hl4 = r4.createHyperlink(); - hl4.linkToUrl("http://poi.apache.org"); + hl4.linkToUrl("https://poi.apache.org"); HSLFTextBox tb5 = ppt1.createSlide().createTextBox(); tb5.setText("page5"); HSLFHyperlink hl5 = tb5.createHyperlink(); @@ -146,7 +146,7 @@ public final class TestHyperlink { HSLFTextBox tb4 = (HSLFTextBox)slides.get(3).getShapes().get(0); hl4 = tb4.getTextParagraphs().get(0).getTextRuns().get(0).getHyperlink(); assertNotNull(hl4); - assertEquals("http://poi.apache.org", hl4.getLabel()); + assertEquals("https://poi.apache.org", hl4.getLabel()); assertEquals(HyperlinkType.URL, hl4.getType()); tb5 = (HSLFTextBox)slides.get(4).getShapes().get(0); @@ -154,10 +154,10 @@ public final class TestHyperlink { assertNotNull(hl5); assertEquals(InteractiveInfoAtom.LINK_FirstSlide, hl5.getInfo().getInteractiveInfoAtom().getHyperlinkType()); assertEquals(HyperlinkType.DOCUMENT, hl5.getType()); - + ppt2.close(); } - + private static List<HSLFHyperlink> findHyperlinks(List<HSLFTextParagraph> paras) { List<HSLFHyperlink> links = new ArrayList<>(); for (HSLFTextParagraph p : paras) { |