You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2021/01/09 15:49:37 UTC
svn commit: r1885302 [2/4] - in /poi/trunk/src:
multimodule/scratchpad/test9/ scratchpad/testcases/org/apache/poi/hdgf/
scratchpad/testcases/org/apache/poi/hdgf/chunks/
scratchpad/testcases/org/apache/poi/hdgf/extractor/
scratchpad/testcases/org/apache...
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHeadersFooters.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHeadersFooters.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHeadersFooters.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHeadersFooters.java Sat Jan 9 15:49:35 2021
@@ -47,7 +47,7 @@ public final class TestHeadersFooters
private static POIDataSamples _slTests = POIDataSamples.getSlideShowInstance();
@Test
- public void testRead() throws IOException {
+ void testRead() throws IOException {
InputStream is = _slTests.openResourceAsStream("headers_footers.ppt");
HSLFSlideShow ppt = new HSLFSlideShow(is);
is.close();
@@ -95,7 +95,7 @@ public final class TestHeadersFooters
* If Headers / Footers are not set, all the getters should return <code>false</code> or <code>null</code>
*/
@Test
- public void testReadNoHeadersFooters() throws Exception {
+ void testReadNoHeadersFooters() throws Exception {
InputStream is = _slTests.openResourceAsStream("basic_test_ppt_file.ppt");
HSLFSlideShow ppt = new HSLFSlideShow(is);
is.close();
@@ -135,7 +135,7 @@ public final class TestHeadersFooters
* Test extraction of headers / footers from PPTs saved in Office 2007
*/
@Test
- public void testRead2007() throws IOException {
+ void testRead2007() throws IOException {
InputStream is = _slTests.openResourceAsStream("headers_footers_2007.ppt");
HSLFSlideShow ppt = new HSLFSlideShow(is);
is.close();
@@ -199,7 +199,7 @@ public final class TestHeadersFooters
}
@Test
- public void testCreateSlideFooters() throws IOException {
+ void testCreateSlideFooters() throws IOException {
HSLFSlideShow ppt1 = new HSLFSlideShow();
HeadersFooters hdd = ppt1.getSlideHeadersFooters();
hdd.setFootersText("My slide footer");
@@ -216,7 +216,7 @@ public final class TestHeadersFooters
}
@Test
- public void testCreateNotesFooters() throws IOException {
+ void testCreateNotesFooters() throws IOException {
HSLFSlideShow ppt1 = new HSLFSlideShow();
HeadersFooters hdd = ppt1.getNotesHeadersFooters();
hdd.setFootersText("My notes footer");
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHyperlink.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHyperlink.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHyperlink.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestHyperlink.java Sat Jan 9 15:49:35 2021
@@ -46,7 +46,7 @@ public final class TestHyperlink {
private static POIDataSamples _slTests = POIDataSamples.getSlideShowInstance();
@Test
- public void testTextRunHyperlinks() throws Exception {
+ void testTextRunHyperlinks() throws Exception {
HSLFSlideShow ppt = new HSLFSlideShow(_slTests.openResourceAsStream("WithLinks.ppt"));
HSLFSlide slide = ppt.getSlides().get(0);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestLine.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestLine.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestLine.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestLine.java Sat Jan 9 15:49:35 2021
@@ -33,7 +33,7 @@ import org.junit.jupiter.api.Test;
public final class TestLine {
@Test
- public void testCreateLines() throws IOException {
+ void testCreateLines() throws IOException {
HSLFSlideShow ppt = new HSLFSlideShow();
HSLFSlide slide = ppt.createSlide();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestMovieShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestMovieShape.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestMovieShape.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestMovieShape.java Sat Jan 9 15:49:35 2021
@@ -40,7 +40,7 @@ public final class TestMovieShape {
private static POIDataSamples _slTests = POIDataSamples.getSlideShowInstance();
@Test
- public void testCreate() throws Exception {
+ void testCreate() throws Exception {
HSLFSlideShow ppt = new HSLFSlideShow();
HSLFSlide slide = ppt.createSlide();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestOleEmbedding.java Sat Jan 9 15:49:35 2021
@@ -49,7 +49,7 @@ public final class TestOleEmbedding {
private static final POIDataSamples _slTests = POIDataSamples.getSlideShowInstance();
@Test
- public void testOleEmbedding2003() throws IOException {
+ void testOleEmbedding2003() throws IOException {
HSLFSlideShowImpl slideShow = new HSLFSlideShowImpl(_slTests.openResourceAsStream("ole2-embedding-2003.ppt"));
// Placeholder EMFs for clients that don't support the OLE components.
List<HSLFPictureData> pictures = slideShow.getPictureData();
@@ -78,7 +78,7 @@ public final class TestOleEmbedding {
@Test
- public void testOLEShape() throws IOException {
+ void testOLEShape() throws IOException {
HSLFSlideShow ppt = new HSLFSlideShow(_slTests.openResourceAsStream("ole2-embedding-2003.ppt"));
HSLFSlide slide = ppt.getSlides().get(0);
@@ -114,7 +114,7 @@ public final class TestOleEmbedding {
}
@Test
- public void testEmbedding() throws IOException {
+ void testEmbedding() throws IOException {
HSLFSlideShow ppt = new HSLFSlideShow();
File pict = POIDataSamples.getSlideShowInstance().getFile("clock.jpg");
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestPPFont.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestPPFont.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestPPFont.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestPPFont.java Sat Jan 9 15:49:35 2021
@@ -35,7 +35,7 @@ import org.junit.jupiter.api.Test;
public final class TestPPFont {
@Test
- public void testCreate() throws IOException {
+ void testCreate() throws IOException {
HSLFSlideShow ppt = new HSLFSlideShow();
assertEquals(1, ppt.getNumberOfFonts());
assertEquals("Arial", ppt.getFont(0).getTypeface());
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSetBoldItalic.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSetBoldItalic.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSetBoldItalic.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSetBoldItalic.java Sat Jan 9 15:49:35 2021
@@ -36,7 +36,7 @@ public final class TestSetBoldItalic {
* and set some of the style attributes
*/
@Test
- public void testTextBoxWrite() throws Exception {
+ void testTextBoxWrite() throws Exception {
HSLFSlideShow ppt = new HSLFSlideShow();
HSLFSlide sl = ppt.createSlide();
HSLFTextRun rt;
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestShapes.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestShapes.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestShapes.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestShapes.java Sat Jan 9 15:49:35 2021
@@ -165,7 +165,7 @@ public final class TestShapes {
@SuppressWarnings("unused")
@Test
- public void testParagraphs() throws IOException {
+ void testParagraphs() throws IOException {
HSLFSlideShow ss = new HSLFSlideShow();
HSLFSlide slide = ss.createSlide();
HSLFTextBox shape = new HSLFTextBox();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSheet.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSheet.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSheet.java Sat Jan 9 15:49:35 2021
@@ -42,7 +42,7 @@ public final class TestSheet {
* For each ppt in the test directory check that all sheets are properly initialized
*/
@Test
- public void testSheet() throws Exception {
+ void testSheet() throws Exception {
String[] tests = {"SampleShow.ppt", "backgrounds.ppt", "text_shapes.ppt", "pictures.ppt"};
for (String file : tests) {
try {
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlideChangeNotes.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlideChangeNotes.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlideChangeNotes.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlideChangeNotes.java Sat Jan 9 15:49:35 2021
@@ -43,7 +43,7 @@ public final class TestSlideChangeNotes
}
@Test
- public void testSetToNone() {
+ void testSetToNone() {
HSLFSlide slideOne = ss.getSlides().get(0);
SlideAtom sa = slideOne.getSlideRecord().getSlideAtom();
@@ -53,7 +53,7 @@ public final class TestSlideChangeNotes
}
@Test
- public void testSetToSomething() {
+ void testSetToSomething() {
HSLFSlide slideOne = ss.getSlides().get(0);
HSLFNotes notesOne = ss.getNotes().get(1);
SlideAtom sa = slideOne.getSlideRecord().getSlideAtom();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlideMaster.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlideMaster.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlideMaster.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlideMaster.java Sat Jan 9 15:49:35 2021
@@ -56,7 +56,7 @@ public final class TestSlideMaster {
* Check we can read their attributes.
*/
@Test
- public void testSlideMaster() throws IOException {
+ void testSlideMaster() throws IOException {
final HSLFSlideShow ppt = new HSLFSlideShow(_slTests.openResourceAsStream("slide_master.ppt"));
final Environment env = ppt.getDocumentRecord().getEnvironment();
@@ -108,7 +108,7 @@ public final class TestSlideMaster {
* Test we can read default text attributes for a title master sheet
*/
@Test
- public void testTitleMasterTextAttributes() throws IOException {
+ void testTitleMasterTextAttributes() throws IOException {
HSLFSlideShow ppt = new HSLFSlideShow(_slTests.openResourceAsStream("slide_master.ppt"));
assertEquals(1, ppt.getTitleMasters().size());
@@ -131,7 +131,7 @@ public final class TestSlideMaster {
* Slide 3 has title layout and follows the TitleMaster. Verify that.
*/
@Test
- public void testTitleMaster() throws IOException {
+ void testTitleMaster() throws IOException {
HSLFSlideShow ppt = new HSLFSlideShow(_slTests.openResourceAsStream("slide_master.ppt"));
HSLFSlide slide = ppt.getSlides().get(2);
HSLFMasterSheet masterSheet = slide.getMasterSheet();
@@ -162,7 +162,7 @@ public final class TestSlideMaster {
* If a style attribute is not set ensure it is read from the master
*/
@Test
- public void testMasterAttributes() throws Exception {
+ void testMasterAttributes() throws Exception {
HSLFSlideShow ppt = new HSLFSlideShow(_slTests.openResourceAsStream("slide_master.ppt"));
List<HSLFSlide> slide = ppt.getSlides();
assertEquals(3, slide.size());
@@ -211,7 +211,7 @@ public final class TestSlideMaster {
* Check we can dynamically assign a slide master to a slide.
*/
@Test
- public void testChangeSlideMaster() throws IOException {
+ void testChangeSlideMaster() throws IOException {
HSLFSlideShow ppt = new HSLFSlideShow(_slTests.openResourceAsStream("slide_master.ppt"));
List<HSLFSlideMaster> master = ppt.getSlideMasters();
List<HSLFSlide> slide = ppt.getSlides();
@@ -248,7 +248,7 @@ public final class TestSlideMaster {
* (typical for the "bullted body" placeholder)
*/
@Test
- public void testIndentation() throws IOException {
+ void testIndentation() throws IOException {
HSLFSlideShow ppt = new HSLFSlideShow(_slTests.openResourceAsStream("slide_master.ppt"));
HSLFSlide slide = ppt.getSlides().get(0);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlides.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlides.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlides.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestSlides.java Sat Jan 9 15:49:35 2021
@@ -41,7 +41,7 @@ public final class TestSlides {
* @throws Exception
*/
@Test
- public void testAddSlides1() throws Exception {
+ void testAddSlides1() throws Exception {
HSLFSlideShow ppt = new HSLFSlideShow(new HSLFSlideShowImpl( TestSlides.class.getResourceAsStream("/org/apache/poi/hslf/data/empty.ppt") ));
assertTrue(ppt.getSlides().isEmpty());
@@ -65,7 +65,7 @@ public final class TestSlides {
* @throws Exception
*/
@Test
- public void testAddSlides2() throws Exception {
+ void testAddSlides2() throws Exception {
HSLFSlideShow ppt = new HSLFSlideShow(new HSLFSlideShowImpl( TestSlides.class.getResourceAsStream("/org/apache/poi/hslf/data/empty.ppt") ));
assertTrue(ppt.getSlides().isEmpty());
@@ -95,7 +95,7 @@ public final class TestSlides {
* @throws Exception
*/
@Test
- public void testAddSlides3() throws Exception {
+ void testAddSlides3() throws Exception {
HSLFSlideShow ppt = new HSLFSlideShow(new HSLFSlideShowImpl( TestSlides.class.getResourceAsStream("/org/apache/poi/hslf/data/empty.ppt") ));
assertTrue(ppt.getSlides().isEmpty());
@@ -143,7 +143,7 @@ public final class TestSlides {
* Add slides to ppt which already has two slides
*/
@Test
- public void testAddSlides2to3() throws Exception {
+ void testAddSlides2to3() throws Exception {
POIDataSamples slTests = POIDataSamples.getSlideShowInstance();
HSLFSlideShow ppt = new HSLFSlideShow(slTests.openResourceAsStream("basic_test_ppt_file.ppt"));
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTable.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTable.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTable.java Sat Jan 9 15:49:35 2021
@@ -51,7 +51,7 @@ public final class TestTable {
* Test that ShapeFactory works properly and returns <code>Table</code>
*/
@Test
- public void testShapeFactory() throws IOException {
+ void testShapeFactory() throws IOException {
final int noColumns, noRows;
ByteArrayOutputStream out = new ByteArrayOutputStream();
try (HSLFSlideShow ppt = new HSLFSlideShow()) {
@@ -89,7 +89,7 @@ public final class TestTable {
* Error constructing Table when rownum=1
*/
@Test
- public void test45889() throws IOException {
+ void test45889() throws IOException {
try (HSLFSlideShow ppt = new HSLFSlideShow()) {
HSLFSlide slide = ppt.createSlide();
List<HSLFShape> shapes;
@@ -110,7 +110,7 @@ public final class TestTable {
// Table(rownum, colnum) must throw IllegalArgumentException if any of the arguments is less than 1
@Test
- public void testIllegalRowCnstruction() throws IOException {
+ void testIllegalRowCnstruction() throws IOException {
try (HSLFSlideShow ppt = new HSLFSlideShow()) {
HSLFSlide slide = ppt.createSlide();
assertThrows(IllegalArgumentException.class, () -> slide.createTable(0, 5));
@@ -119,7 +119,7 @@ public final class TestTable {
// Table(rownum, colnum) must throw IllegalArgumentException if any of the arguments is less than 1
@Test
- public void testIllegalColConstruction() throws IOException {
+ void testIllegalColConstruction() throws IOException {
try (HSLFSlideShow ppt = new HSLFSlideShow()) {
HSLFSlide slide = ppt.createSlide();
assertThrows(IllegalArgumentException.class, () -> slide.createTable(5, 0));
@@ -131,7 +131,7 @@ public final class TestTable {
* when the table is positioned with its top at -1
*/
@Test
- public void test57820() throws IOException {
+ void test57820() throws IOException {
try (SlideShow<?,?> ppt = new HSLFSlideShow(_slTests.openResourceAsStream("bug57820-initTableNullRefrenceException.ppt"))) {
List<? extends Slide<?, ?>> slides = ppt.getSlides();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRunReWrite.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRunReWrite.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRunReWrite.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/model/TestTextRunReWrite.java Sat Jan 9 15:49:35 2021
@@ -55,7 +55,7 @@ public final class TestTextRunReWrite {
}
@Test
- public void testWritesOutTheSameNonRich() throws IOException {
+ void testWritesOutTheSameNonRich() throws IOException {
// Ensure the text lengths are as we'd expect to start with
assertEquals(1, ss.getSlides().size());
assertEquals(2, ss.getSlides().get(0).getTextParagraphs().size());
@@ -117,7 +117,7 @@ public final class TestTextRunReWrite {
}
@Test
- public void testWritesOutTheSameRich() throws IOException {
+ void testWritesOutTheSameRich() throws IOException {
// Grab the first text run on the first sheet
List<HSLFTextParagraph> tr1 = ss.getSlides().get(0).getTextParagraphs().get(0);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestAnimationInfoAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestAnimationInfoAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestAnimationInfoAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestAnimationInfoAtom.java Sat Jan 9 15:49:35 2021
@@ -45,7 +45,7 @@ public final class TestAnimationInfoAtom
};
@Test
- public void testRead() {
+ void testRead() {
AnimationInfoAtom record = new AnimationInfoAtom(data, 0, data.length);
assertEquals(RecordTypes.AnimationInfoAtom.typeID, record.getRecordType());
assertTrue(record.getFlag(AnimationInfoAtom.Automatic));
@@ -64,7 +64,7 @@ public final class TestAnimationInfoAtom
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
AnimationInfoAtom record = new AnimationInfoAtom(data, 0, data.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
record.writeOut(baos);
@@ -74,7 +74,7 @@ public final class TestAnimationInfoAtom
}
@Test
- public void testNewRecord() throws Exception {
+ void testNewRecord() throws Exception {
AnimationInfoAtom record = new AnimationInfoAtom();
record.setDimColor(0x07000000);
record.setOrderID(2);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestCString.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestCString.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestCString.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestCString.java Sat Jan 9 15:49:35 2021
@@ -38,7 +38,7 @@ public final class TestCString {
0x65, 0, 0x6E, 0, 0x74, 0, 0x73, 0 };
@Test
- public void testRecordType() {
+ void testRecordType() {
CString ca = new CString(data_a, 0, data_a.length);
assertEquals(4026L, ca.getRecordType());
CString cb = new CString(data_b, 0, data_a.length);
@@ -46,7 +46,7 @@ public final class TestCString {
}
@Test
- public void testCount() {
+ void testCount() {
CString ca = new CString(data_a, 0, data_a.length);
assertEquals(0, ca.getOptions());
CString cb = new CString(data_b, 0, data_a.length);
@@ -57,7 +57,7 @@ public final class TestCString {
}
@Test
- public void testText() {
+ void testText() {
CString ca = new CString(data_a, 0, data_a.length);
assertEquals("Hogwarts", ca.getText());
CString cb = new CString(data_b, 0, data_a.length);
@@ -68,7 +68,7 @@ public final class TestCString {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
CString ca = new CString(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ca.writeOut(baos);
@@ -92,7 +92,7 @@ public final class TestCString {
// Turn data_a into data_b
@Test
- public void testChange() throws Exception {
+ void testChange() throws Exception {
CString ca = new CString(data_a, 0, data_a.length);
ca.setText("Comments");
ca.setOptions(0x10);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestColorSchemeAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestColorSchemeAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestColorSchemeAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestColorSchemeAtom.java Sat Jan 9 15:49:35 2021
@@ -37,13 +37,13 @@ public final class TestColorSchemeAtom {
};
@Test
- public void testRecordType() {
+ void testRecordType() {
ColorSchemeAtom csa = new ColorSchemeAtom(data_a,0,data_a.length);
assertEquals(2032L, csa.getRecordType());
}
@Test
- public void testToRGB() {
+ void testToRGB() {
byte[] rgb = ColorSchemeAtom.splitRGB(3669760);
assertEquals(3,rgb.length);
@@ -53,7 +53,7 @@ public final class TestColorSchemeAtom {
}
@Test
- public void testFromRGB() {
+ void testFromRGB() {
byte[] rgb_a = new byte[] { 0, 255-256, 55 };
byte[] rgb_b = new byte[] { 255-256, 127, 79 };
@@ -65,7 +65,7 @@ public final class TestColorSchemeAtom {
}
@Test
- public void testRGBs() {
+ void testRGBs() {
ColorSchemeAtom csa = new ColorSchemeAtom(data_a,0,data_a.length);
assertEquals( 16777215 , csa.getBackgroundColourRGB() );
@@ -79,7 +79,7 @@ public final class TestColorSchemeAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
ColorSchemeAtom csa = new ColorSchemeAtom(data_a,0,data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
csa.writeOut(baos);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000.java Sat Jan 9 15:49:35 2021
@@ -100,26 +100,26 @@ public final class TestComment2000 {
}
@Test
- public void testRecordType() {
+ void testRecordType() {
Comment2000 ca = new Comment2000(data_a, 0, data_a.length);
assertEquals(12000L, ca.getRecordType());
}
@Test
- public void testAuthor() {
+ void testAuthor() {
Comment2000 ca = new Comment2000(data_a, 0, data_a.length);
assertEquals("Dumbledore", ca.getAuthor());
assertEquals("D", ca.getAuthorInitials());
}
@Test
- public void testText() {
+ void testText() {
Comment2000 ca = new Comment2000(data_a, 0, data_a.length);
assertEquals("Yes, they certainly are, aren't they!", ca.getText());
}
@Test
- public void testCommentAtom() throws Exception {
+ void testCommentAtom() throws Exception {
Comment2000 ca = new Comment2000(data_a, 0, data_a.length);
Comment2000Atom c2a = ca.getComment2000Atom();
@@ -131,7 +131,7 @@ public final class TestComment2000 {
}
@Test
- public void testCommentAtomB() throws Exception {
+ void testCommentAtomB() throws Exception {
Comment2000 cb = new Comment2000(data_b, 0, data_b.length);
Comment2000Atom c2b = cb.getComment2000Atom();
@@ -143,7 +143,7 @@ public final class TestComment2000 {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
Comment2000 ca = new Comment2000(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ca.writeOut(baos);
@@ -157,7 +157,7 @@ public final class TestComment2000 {
// Change a few things
@Test
- public void testChange() throws Exception {
+ void testChange() throws Exception {
Comment2000 ca = new Comment2000(data_a, 0, data_a.length);
Comment2000 cb = new Comment2000(data_b, 0, data_b.length);
Comment2000 cn = new Comment2000();
@@ -223,7 +223,7 @@ public final class TestComment2000 {
* A Comment2000 records with missing commentTextAtom
*/
@Test
- public void testBug44770() {
+ void testBug44770() {
byte[] data = {
0x0F, 0x00, (byte)0xE0, 0x2E, 0x3E, 0x00, 0x00, 0x00, 0x00, 0x00, (byte)0xBA, 0x0F,
0x08, 0x00, 0x00, 0x00, 0x4E, 0x00, 0x45, 0x00, 0x53, 0x00, 0x53, 0x00, 0x20,
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000Atom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000Atom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000Atom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestComment2000Atom.java Sat Jan 9 15:49:35 2021
@@ -60,13 +60,13 @@ public final class TestComment2000Atom {
}
@Test
- public void testRecordType() {
+ void testRecordType() {
Comment2000Atom ca = new Comment2000Atom(data_a, 0, data_a.length);
assertEquals(12001l, ca.getRecordType());
}
@Test
- public void testGetDate() throws Exception {
+ void testGetDate() throws Exception {
Comment2000Atom ca = new Comment2000Atom(data_a, 0, data_a.length);
Comment2000Atom cb = new Comment2000Atom(data_b, 0, data_b.length);
@@ -80,7 +80,7 @@ public final class TestComment2000Atom {
}
@Test
- public void testGetNums() {
+ void testGetNums() {
Comment2000Atom ca = new Comment2000Atom(data_a, 0, data_a.length);
Comment2000Atom cb = new Comment2000Atom(data_b, 0, data_b.length);
@@ -91,7 +91,7 @@ public final class TestComment2000Atom {
}
@Test
- public void testGetPos() {
+ void testGetPos() {
Comment2000Atom ca = new Comment2000Atom(data_a, 0, data_a.length);
Comment2000Atom cb = new Comment2000Atom(data_b, 0, data_b.length);
@@ -105,7 +105,7 @@ public final class TestComment2000Atom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
Comment2000Atom ca = new Comment2000Atom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ca.writeOut(baos);
@@ -119,7 +119,7 @@ public final class TestComment2000Atom {
// Create A from scratch
@Test
- public void testCreate() throws Exception {
+ void testCreate() throws Exception {
Comment2000Atom a = new Comment2000Atom();
// Set number, x and y
@@ -144,7 +144,7 @@ public final class TestComment2000Atom {
// Try to turn a into b
@Test
- public void testChange() throws Exception {
+ void testChange() throws Exception {
Comment2000Atom ca = new Comment2000Atom(data_a, 0, data_a.length);
// Change the number
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestDocument.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestDocument.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestDocument.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestDocument.java Sat Jan 9 15:49:35 2021
@@ -54,13 +54,13 @@ public final class TestDocument {
}
@Test
- public void testRecordType() {
+ void testRecordType() {
Document dr = getDocRecord();
assertEquals(1000, dr.getRecordType());
}
@Test
- public void testChildRecords() {
+ void testChildRecords() {
Document dr = getDocRecord();
assertNotNull(dr.getDocumentAtom());
@@ -74,7 +74,7 @@ public final class TestDocument {
}
@Test
- public void testEnvironment() {
+ void testEnvironment() {
Document dr = getDocRecord();
Environment env = dr.getEnvironment();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestDocumentAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestDocumentAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestDocumentAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestDocumentAtom.java Sat Jan 9 15:49:35 2021
@@ -39,13 +39,13 @@ public final class TestDocumentAtom {
1, 0, 0, 0, 0, 0, 0, 1 };
@Test
- public void testRecordType() {
+ void testRecordType() {
DocumentAtom da = new DocumentAtom(data_a, 0, data_a.length);
assertEquals(1001l, da.getRecordType());
}
@Test
- public void testSizeAndZoom() {
+ void testSizeAndZoom() {
DocumentAtom da = new DocumentAtom(data_a, 0, data_a.length);
assertEquals(5760L, da.getSlideSizeX());
assertEquals(4320L, da.getSlideSizeY());
@@ -57,21 +57,21 @@ public final class TestDocumentAtom {
}
@Test
- public void testMasterPersist() {
+ void testMasterPersist() {
DocumentAtom da = new DocumentAtom(data_a, 0, data_a.length);
assertEquals(2L, da.getNotesMasterPersist());
assertEquals(0L, da.getHandoutMasterPersist());
}
@Test
- public void testSlideDetails() {
+ void testSlideDetails() {
DocumentAtom da = new DocumentAtom(data_a, 0, data_a.length);
assertEquals(1, da.getFirstSlideNum());
assertEquals(0, da.getSlideSizeType());
}
@Test
- public void testBooleans() {
+ void testBooleans() {
DocumentAtom da = new DocumentAtom(data_a, 0, data_a.length);
assertFalse(da.getSaveWithFonts());
assertFalse(da.getOmitTitlePlace());
@@ -80,7 +80,7 @@ public final class TestDocumentAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
DocumentAtom da = new DocumentAtom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
da.writeOut(baos);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExControl.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExControl.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExControl.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExControl.java Sat Jan 9 15:49:35 2021
@@ -72,7 +72,7 @@ public final class TestExControl {
};
@Test
- public void testRead() {
+ void testRead() {
ExControl record = new ExControl(data, 0, data.length);
assertEquals(RecordTypes.ExControl.typeID, record.getRecordType());
@@ -91,7 +91,7 @@ public final class TestExControl {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
ExControl record = new ExControl(data, 0, data.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
record.writeOut(baos);
@@ -99,7 +99,7 @@ public final class TestExControl {
}
@Test
- public void testNewRecord() throws Exception {
+ void testNewRecord() throws Exception {
ExControl record = new ExControl();
ExControlAtom ctrl = record.getExControlAtom();
ctrl.setSlideId(256);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExHyperlink.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExHyperlink.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExHyperlink.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExHyperlink.java Sat Jan 9 15:49:35 2021
@@ -37,7 +37,7 @@ import org.junit.jupiter.api.Test;
*/
public final class TestExHyperlink {
@Test
- public void testReadWrite() throws IOException {
+ void testReadWrite() throws IOException {
// From a real file
byte[] exHyperlinkBytes = org.apache.poi.poifs.storage.RawDataUtil.decompress(
"H4sIAAAAAAAAAONnuM6/ggEELvOzAElmMHsXvxuQzGAoAcICBisGfSDMYkhkyAbi"+
@@ -59,7 +59,7 @@ public final class TestExHyperlink {
}
@Test
- public void testRealFile() throws IOException {
+ void testRealFile() throws IOException {
POIDataSamples slTests = POIDataSamples.getSlideShowInstance();
HSLFSlideShowImpl hss = new HSLFSlideShowImpl(slTests.openResourceAsStream("WithLinks.ppt"));
HSLFSlideShow ss = new HSLFSlideShow(hss);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExHyperlinkAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExHyperlinkAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExHyperlinkAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExHyperlinkAtom.java Sat Jan 9 15:49:35 2021
@@ -40,13 +40,13 @@ public class TestExHyperlinkAtom {
};
@Test
- public void testRecordType() {
+ void testRecordType() {
ExHyperlinkAtom eha = new ExHyperlinkAtom(data_a, 0, data_a.length);
assertEquals(4051L, eha.getRecordType());
}
@Test
- public void testGetNumber() {
+ void testGetNumber() {
ExHyperlinkAtom eha = new ExHyperlinkAtom(data_a, 0, data_a.length);
ExHyperlinkAtom ehb = new ExHyperlinkAtom(data_b, 0, data_b.length);
@@ -55,7 +55,7 @@ public class TestExHyperlinkAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
ExHyperlinkAtom eha = new ExHyperlinkAtom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
eha.writeOut(baos);
@@ -64,7 +64,7 @@ public class TestExHyperlinkAtom {
// Create A from scratch
@Test
- public void testCreate() throws Exception {
+ void testCreate() throws Exception {
ExHyperlinkAtom eha = new ExHyperlinkAtom();
// Set value
@@ -78,7 +78,7 @@ public class TestExHyperlinkAtom {
// Try to turn a into b
@Test
- public void testChange() throws Exception {
+ void testChange() throws Exception {
ExHyperlinkAtom eha = new ExHyperlinkAtom(data_a, 0, data_a.length);
// Change the number
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExMediaAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExMediaAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExMediaAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExMediaAtom.java Sat Jan 9 15:49:35 2021
@@ -37,7 +37,7 @@ public final class TestExMediaAtom {
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
@Test
- public void testRead() {
+ void testRead() {
ExMediaAtom record = new ExMediaAtom(data, 0, data.length);
assertEquals(RecordTypes.ExMediaAtom.typeID, record.getRecordType());
@@ -48,7 +48,7 @@ public final class TestExMediaAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
ExMediaAtom record = new ExMediaAtom(data, 0, data.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
record.writeOut(baos);
@@ -58,7 +58,7 @@ public final class TestExMediaAtom {
}
@Test
- public void testNewRecord() throws Exception {
+ void testNewRecord() throws Exception {
ExMediaAtom ref = new ExMediaAtom(data, 0, data.length);
assertEquals(0, ref.getMask()); //
@@ -76,7 +76,7 @@ public final class TestExMediaAtom {
}
@Test
- public void testFlags() {
+ void testFlags() {
ExMediaAtom record = new ExMediaAtom();
//in a new record all the bits are 0
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExObjList.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExObjList.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExObjList.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExObjList.java Sat Jan 9 15:49:35 2021
@@ -30,7 +30,7 @@ import org.junit.jupiter.api.Test;
*/
public class TestExObjList {
@Test
- public void testRealFile() throws Exception {
+ void testRealFile() throws Exception {
POIDataSamples slTests = POIDataSamples.getSlideShowInstance();
HSLFSlideShow ss = new HSLFSlideShow(slTests.openResourceAsStream("WithLinks.ppt"));
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExObjListAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExObjListAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExObjListAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExObjListAtom.java Sat Jan 9 15:49:35 2021
@@ -40,13 +40,13 @@ public class TestExObjListAtom {
};
@Test
- public void testRecordType() {
+ void testRecordType() {
ExObjListAtom eoa = new ExObjListAtom(data_a, 0, data_a.length);
BaseTestNumeric.assertDouble(1034L, eoa.getRecordType());
}
@Test
- public void testGetSeed() {
+ void testGetSeed() {
ExObjListAtom eoa = new ExObjListAtom(data_a, 0, data_a.length);
ExObjListAtom eob = new ExObjListAtom(data_b, 0, data_b.length);
@@ -55,7 +55,7 @@ public class TestExObjListAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
ExObjListAtom eoa = new ExObjListAtom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
eoa.writeOut(baos);
@@ -64,7 +64,7 @@ public class TestExObjListAtom {
// Create A from scratch
@Test
- public void testCreate() throws Exception {
+ void testCreate() throws Exception {
ExObjListAtom eoa = new ExObjListAtom();
// Set seed
@@ -78,7 +78,7 @@ public class TestExObjListAtom {
// Try to turn a into b
@Test
- public void testChange() throws Exception {
+ void testChange() throws Exception {
ExObjListAtom eoa = new ExObjListAtom(data_a, 0, data_a.length);
// Change the number
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExOleObjAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExOleObjAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExOleObjAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExOleObjAtom.java Sat Jan 9 15:49:35 2021
@@ -35,7 +35,7 @@ public final class TestExOleObjAtom {
0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, (byte)0x96, 0x13, 0x00 };
@Test
- public void testRead() {
+ void testRead() {
ExOleObjAtom record = new ExOleObjAtom(data, 0, data.length);
assertEquals(RecordTypes.ExOleObjAtom.typeID, record.getRecordType());
@@ -48,7 +48,7 @@ public final class TestExOleObjAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
ExOleObjAtom record = new ExOleObjAtom(data, 0, data.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
record.writeOut(baos);
@@ -56,7 +56,7 @@ public final class TestExOleObjAtom {
}
@Test
- public void testNewRecord() throws Exception {
+ void testNewRecord() throws Exception {
ExOleObjAtom record = new ExOleObjAtom();
record.setDrawAspect(ExOleObjAtom.DRAW_ASPECT_VISIBLE);
record.setType(ExOleObjAtom.TYPE_CONTROL);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExOleObjStg.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExOleObjStg.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExOleObjStg.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExOleObjStg.java Sat Jan 9 15:49:35 2021
@@ -53,7 +53,7 @@ public final class TestExOleObjStg {
}
@Test
- public void testRead() throws Exception {
+ void testRead() throws Exception {
ExOleObjStg record = new ExOleObjStg(data, 0, data.length);
assertEquals(RecordTypes.ExOleObjStg.typeID, record.getRecordType());
@@ -68,7 +68,7 @@ public final class TestExOleObjStg {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
ExOleObjStg record = new ExOleObjStg(data, 0, data.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
record.writeOut(baos);
@@ -78,7 +78,7 @@ public final class TestExOleObjStg {
}
@Test
- public void testNewRecord() throws Exception {
+ void testNewRecord() throws Exception {
ExOleObjStg src = new ExOleObjStg(data, 0, data.length);
byte[] oledata = readAll(src.getData());
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExVideoContainer.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExVideoContainer.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExVideoContainer.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestExVideoContainer.java Sat Jan 9 15:49:35 2021
@@ -51,7 +51,7 @@ public final class TestExVideoContainer
0x6D, 0x00, 0x70, 0x00, 0x67, 0x00};
@Test
- public void testRead() {
+ void testRead() {
ExVideoContainer record = new ExVideoContainer(data, 0, data.length);
assertEquals(RecordTypes.ExVideoContainer.typeID, record.getRecordType());
@@ -68,7 +68,7 @@ public final class TestExVideoContainer
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
ExVideoContainer record = new ExVideoContainer(data, 0, data.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
record.writeOut(baos);
@@ -76,7 +76,7 @@ public final class TestExVideoContainer
}
@Test
- public void testNewRecord() throws Exception {
+ void testNewRecord() throws Exception {
ExVideoContainer record = new ExVideoContainer();
record.getExMediaAtom().setObjectId(1);
record.getPathAtom().setText("D:\\projects\\SchulerAG\\mcom_v_1_0_4\\view\\data\\tests\\images\\cards.mpg");
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestFontCollection.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestFontCollection.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestFontCollection.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestFontCollection.java Sat Jan 9 15:49:35 2021
@@ -51,7 +51,7 @@ public final class TestFontCollection {
}
@Test
- public void testFonts() {
+ void testFonts() {
FontCollection fonts = new FontCollection(data, 0, data.length);
Record[] child = fonts.getChildRecords();
assertEquals(child.length, 1);
@@ -61,7 +61,7 @@ public final class TestFontCollection {
}
@Test
- public void testAddFont() {
+ void testAddFont() {
FontCollection fonts = new FontCollection(data, 0, data.length);
HSLFFontInfo fi = fonts.addFont(HSLFFontInfoPredefined.TIMES_NEW_ROMAN);
assertEquals((int)fi.getIndex(), 0);
@@ -85,7 +85,7 @@ public final class TestFontCollection {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
FontCollection fonts = new FontCollection(data, 0, data.length);
ByteArrayOutputStream out = new ByteArrayOutputStream();
fonts.writeOut(out);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestHeadersFootersAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestHeadersFootersAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestHeadersFootersAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestHeadersFootersAtom.java Sat Jan 9 15:49:35 2021
@@ -37,7 +37,7 @@ public final class TestHeadersFootersAto
0x00, 0x00, 0x23, 0x00 };
@Test
- public void testRead() {
+ void testRead() {
HeadersFootersAtom record = new HeadersFootersAtom(data, 0, data.length);
assertEquals(RecordTypes.HeadersFootersAtom.typeID, record.getRecordType());
@@ -53,7 +53,7 @@ public final class TestHeadersFootersAto
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
HeadersFootersAtom record = new HeadersFootersAtom(data, 0, data.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
record.writeOut(baos);
@@ -61,7 +61,7 @@ public final class TestHeadersFootersAto
}
@Test
- public void testNewRecord() throws Exception {
+ void testNewRecord() throws Exception {
HeadersFootersAtom record = new HeadersFootersAtom();
record.setFlag(HeadersFootersAtom.fHasDate, true);
record.setFlag(HeadersFootersAtom.fHasTodayDate, true);
@@ -73,7 +73,7 @@ public final class TestHeadersFootersAto
}
@Test
- public void testFlags() {
+ void testFlags() {
HeadersFootersAtom record = new HeadersFootersAtom();
//in a new record all the bits are 0
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestHeadersFootersContainer.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestHeadersFootersContainer.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestHeadersFootersContainer.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestHeadersFootersContainer.java Sat Jan 9 15:49:35 2021
@@ -54,7 +54,7 @@ public final class TestHeadersFootersCon
};
@Test
- public void testReadSlideHeadersFootersContainer() {
+ void testReadSlideHeadersFootersContainer() {
HeadersFootersContainer record = new HeadersFootersContainer(slideData, 0, slideData.length);
assertEquals(RecordTypes.HeadersFooters.typeID, record.getRecordType());
assertEquals(HeadersFootersContainer.SlideHeadersFootersContainer, record.getOptions());
@@ -74,7 +74,7 @@ public final class TestHeadersFootersCon
}
@Test
- public void testWriteSlideHeadersFootersContainer() throws Exception {
+ void testWriteSlideHeadersFootersContainer() throws Exception {
HeadersFootersContainer record = new HeadersFootersContainer(slideData, 0, slideData.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
record.writeOut(baos);
@@ -82,7 +82,7 @@ public final class TestHeadersFootersCon
}
@Test
- public void testNewSlideHeadersFootersContainer() throws Exception {
+ void testNewSlideHeadersFootersContainer() throws Exception {
HeadersFootersContainer record = new HeadersFootersContainer(HeadersFootersContainer.SlideHeadersFootersContainer);
assertNotNull(record.getHeadersFootersAtom());
@@ -106,7 +106,7 @@ public final class TestHeadersFootersCon
}
@Test
- public void testReadNotesHeadersFootersContainer() {
+ void testReadNotesHeadersFootersContainer() {
HeadersFootersContainer record = new HeadersFootersContainer(notesData, 0, notesData.length);
assertEquals(RecordTypes.HeadersFooters.typeID, record.getRecordType());
assertEquals(HeadersFootersContainer.NotesHeadersFootersContainer, record.getOptions());
@@ -127,7 +127,7 @@ public final class TestHeadersFootersCon
}
@Test
- public void testWriteNotesHeadersFootersContainer() throws Exception {
+ void testWriteNotesHeadersFootersContainer() throws Exception {
HeadersFootersContainer record = new HeadersFootersContainer(notesData, 0, notesData.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
record.writeOut(baos);
@@ -135,7 +135,7 @@ public final class TestHeadersFootersCon
}
@Test
- public void testNewNotesHeadersFootersContainer() throws Exception {
+ void testNewNotesHeadersFootersContainer() throws Exception {
HeadersFootersContainer record = new HeadersFootersContainer(HeadersFootersContainer.NotesHeadersFootersContainer);
assertNotNull(record.getHeadersFootersAtom());
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestInteractiveInfo.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestInteractiveInfo.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestInteractiveInfo.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestInteractiveInfo.java Sat Jan 9 15:49:35 2021
@@ -41,13 +41,13 @@ public class TestInteractiveInfo {
};
@Test
- public void testRecordType() {
+ void testRecordType() {
InteractiveInfo ii = new InteractiveInfo(data_a, 0, data_a.length);
assertEquals(4082, ii.getRecordType());
}
@Test
- public void testGetChildDetails() {
+ void testGetChildDetails() {
InteractiveInfo ii = new InteractiveInfo(data_a, 0, data_a.length);
InteractiveInfoAtom ia = ii.getInteractiveInfoAtom();
@@ -55,7 +55,7 @@ public class TestInteractiveInfo {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
InteractiveInfo ii = new InteractiveInfo(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ii.writeOut(baos);
@@ -64,7 +64,7 @@ public class TestInteractiveInfo {
// Create A from scratch
@Test
- public void testCreate() throws Exception {
+ void testCreate() throws Exception {
InteractiveInfo ii = new InteractiveInfo();
InteractiveInfoAtom ia = ii.getInteractiveInfoAtom();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestInteractiveInfoAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestInteractiveInfoAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestInteractiveInfoAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestInteractiveInfoAtom.java Sat Jan 9 15:49:35 2021
@@ -42,13 +42,13 @@ public class TestInteractiveInfoAtom {
};
@Test
- public void testRecordType() {
+ void testRecordType() {
InteractiveInfoAtom ia = new InteractiveInfoAtom(data_a, 0, data_a.length);
assertEquals(4083L, ia.getRecordType());
}
@Test
- public void testGetNumber() {
+ void testGetNumber() {
InteractiveInfoAtom ia = new InteractiveInfoAtom(data_a, 0, data_a.length);
InteractiveInfoAtom ib = new InteractiveInfoAtom(data_b, 0, data_b.length);
@@ -57,7 +57,7 @@ public class TestInteractiveInfoAtom {
}
@Test
- public void testGetRest() {
+ void testGetRest() {
InteractiveInfoAtom ia = new InteractiveInfoAtom(data_a, 0, data_a.length);
InteractiveInfoAtom ib = new InteractiveInfoAtom(data_b, 0, data_b.length);
@@ -72,7 +72,7 @@ public class TestInteractiveInfoAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
InteractiveInfoAtom ia = new InteractiveInfoAtom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ia.writeOut(baos);
@@ -81,7 +81,7 @@ public class TestInteractiveInfoAtom {
// Create A from scratch
@Test
- public void testCreate() throws Exception {
+ void testCreate() throws Exception {
InteractiveInfoAtom ia = new InteractiveInfoAtom();
// Set values
@@ -98,7 +98,7 @@ public class TestInteractiveInfoAtom {
// Try to turn a into b
@Test
- public void testChange() throws Exception {
+ void testChange() throws Exception {
InteractiveInfoAtom ia = new InteractiveInfoAtom(data_a, 0, data_a.length);
// Change the number
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestNotesAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestNotesAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestNotesAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestNotesAtom.java Sat Jan 9 15:49:35 2021
@@ -35,13 +35,13 @@ public final class TestNotesAtom {
0, 0, 0, 0x80-256, 0, 0, 0x0D, 0x30 };
@Test
- public void testRecordType() {
+ void testRecordType() {
NotesAtom na = new NotesAtom(data_a, 0, data_a.length);
assertEquals(1009L, na.getRecordType());
}
@Test
- public void testFlags() {
+ void testFlags() {
NotesAtom na = new NotesAtom(data_a, 0, data_a.length);
assertEquals(0x80000000, na.getSlideID());
assertFalse(na.getFollowMasterObjects());
@@ -50,7 +50,7 @@ public final class TestNotesAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
NotesAtom na = new NotesAtom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
na.writeOut(baos);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestRecordContainer.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestRecordContainer.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestRecordContainer.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestRecordContainer.java Sat Jan 9 15:49:35 2021
@@ -61,12 +61,12 @@ public final class TestRecordContainer {
}
@Test
- public void testIsAnAtom() {
+ void testIsAnAtom() {
assertFalse( recordContainer.isAnAtom() );
}
@Test
- public void testAppendChildRecord() {
+ void testAppendChildRecord() {
// Grab records for testing with
Record r = recordContainer.getChildRecords()[0];
Record rb = recordContainer.getChildRecords()[1];
@@ -100,7 +100,7 @@ public final class TestRecordContainer {
}
@Test
- public void testAddChildAfter() {
+ void testAddChildAfter() {
// Working with new StyleTextPropAtom
Record newRecord = new StyleTextPropAtom(0);
@@ -130,7 +130,7 @@ public final class TestRecordContainer {
}
@Test
- public void testAddChildBefore() {
+ void testAddChildBefore() {
// Working with new StyleTextPropAtom
Record newRecord = new StyleTextPropAtom(0);
@@ -171,7 +171,7 @@ public final class TestRecordContainer {
}
@Test
- public void testRemove() {
+ void testRemove() {
Record[] ch = recordContainer.getChildRecords();
Record removeRecord = recordContainer.removeChild(ch[0]);
assertSame(ch[0], removeRecord);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestRecordTypes.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestRecordTypes.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestRecordTypes.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestRecordTypes.java Sat Jan 9 15:49:35 2021
@@ -28,21 +28,21 @@ import org.junit.jupiter.api.Test;
*/
public final class TestRecordTypes {
@Test
- public void testPPTNameLookups() {
+ void testPPTNameLookups() {
assertEquals("MainMaster", RecordTypes.MainMaster.name());
assertEquals("TextBytesAtom", RecordTypes.TextBytesAtom.name());
assertEquals("VBAInfo", RecordTypes.VBAInfo.name());
}
@Test
- public void testEscherNameLookups() {
+ void testEscherNameLookups() {
assertEquals("DGG_CONTAINER", EscherRecordTypes.DGG_CONTAINER.name());
assertEquals("CLIENT_TEXTBOX", EscherRecordTypes.CLIENT_TEXTBOX.name());
assertEquals("SELECTION", EscherRecordTypes.SELECTION.name());
}
@Test
- public void testPPTClassLookups() {
+ void testPPTClassLookups() {
// If this record is ever implemented, change to one that isn't!
// This is checking the "unhandled default" stuff works
assertEquals(RecordTypes.UnknownRecordPlaceholder, RecordTypes.forTypeID(-10));
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlideAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlideAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlideAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlideAtom.java Sat Jan 9 15:49:35 2021
@@ -41,13 +41,13 @@ public final class TestSlideAtom {
0, 1, 0, 0, 7, 0, 0x0C, 0x30 };
@Test
- public void testRecordType() {
+ void testRecordType() {
SlideAtom sa = new SlideAtom(data_a, 0, data_a.length);
assertEquals(1007l, sa.getRecordType());
}
@Test
- public void testFlags() {
+ void testFlags() {
SlideAtom sa = new SlideAtom(data_a, 0, data_a.length);
// First 12 bytes are a SSlideLayoutAtom, checked elsewhere
@@ -63,7 +63,7 @@ public final class TestSlideAtom {
}
@Test
- public void testSSlideLayoutAtom() {
+ void testSSlideLayoutAtom() {
SlideAtom sa = new SlideAtom(data_a, 0, data_a.length);
SlideAtomLayout ssla = sa.getSSlideLayoutAtom();
@@ -73,7 +73,7 @@ public final class TestSlideAtom {
}
@Test
- public void testWrite() throws IOException {
+ void testWrite() throws IOException {
SlideAtom sa = new SlideAtom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
sa.writeOut(baos);
@@ -81,7 +81,7 @@ public final class TestSlideAtom {
}
@Test
- public void testSSSlideInfoAtom() throws IOException {
+ void testSSSlideInfoAtom() throws IOException {
HSLFSlideShow ss1 = new HSLFSlideShow();
HSLFSlide slide1 = ss1.createSlide(), slide2 = ss1.createSlide();
slide2.setHidden(true);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlidePersistAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlidePersistAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlidePersistAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSlidePersistAtom.java Sat Jan 9 15:49:35 2021
@@ -36,13 +36,13 @@ public final class TestSlidePersistAtom
1, 0, 0, 0, 0, 0, 0 };
@Test
- public void testRecordType() {
+ void testRecordType() {
SlidePersistAtom spa = new SlidePersistAtom(data_a, 0, data_a.length);
assertEquals(1011L, spa.getRecordType());
}
@Test
- public void testFlags() {
+ void testFlags() {
SlidePersistAtom spa = new SlidePersistAtom(data_a, 0, data_a.length);
assertEquals(4, spa.getRefID() );
assertTrue(spa.getHasShapesOtherThanPlaceholders());
@@ -51,7 +51,7 @@ public final class TestSlidePersistAtom
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
SlidePersistAtom spa = new SlidePersistAtom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
spa.writeOut(baos);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSound.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSound.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSound.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestSound.java Sat Jan 9 15:49:35 2021
@@ -33,7 +33,7 @@ import org.junit.jupiter.api.Test;
*/
public final class TestSound {
@Test
- public void testRealFile() throws IOException {
+ void testRealFile() throws IOException {
POIDataSamples slTests = POIDataSamples.getSlideShowInstance();
HSLFSlideShow ppt = new HSLFSlideShow(slTests.openResourceAsStream("sound.ppt"));
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestStyleTextPropAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestStyleTextPropAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestStyleTextPropAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestStyleTextPropAtom.java Sat Jan 9 15:49:35 2021
@@ -139,7 +139,7 @@ public final class TestStyleTextPropAtom
private static final int data_d_text_len = 0xA0-1;
@Test
- public void testRecordType() {
+ void testRecordType() {
StyleTextPropAtom stpa = new StyleTextPropAtom(data_a,0,data_a.length);
StyleTextPropAtom stpb = new StyleTextPropAtom(data_b,0,data_b.length);
StyleTextPropAtom stpc = new StyleTextPropAtom(data_c,0,data_c.length);
@@ -150,7 +150,7 @@ public final class TestStyleTextPropAtom
@Test
- public void testCharacterStyleCounts() {
+ void testCharacterStyleCounts() {
StyleTextPropAtom stpa = new StyleTextPropAtom(data_a,0,data_a.length);
StyleTextPropAtom stpb = new StyleTextPropAtom(data_b,0,data_b.length);
@@ -165,7 +165,7 @@ public final class TestStyleTextPropAtom
}
@Test
- public void testParagraphStyleCounts() {
+ void testParagraphStyleCounts() {
StyleTextPropAtom stpa = new StyleTextPropAtom(data_a,0,data_a.length);
StyleTextPropAtom stpb = new StyleTextPropAtom(data_b,0,data_b.length);
@@ -181,7 +181,7 @@ public final class TestStyleTextPropAtom
@Test
- public void testCharacterStyleLengths() {
+ void testCharacterStyleLengths() {
StyleTextPropAtom stpa = new StyleTextPropAtom(data_a,0,data_a.length);
StyleTextPropAtom stpb = new StyleTextPropAtom(data_b,0,data_b.length);
@@ -212,7 +212,7 @@ public final class TestStyleTextPropAtom
@Test
- public void testCharacterPropOrdering() {
+ void testCharacterPropOrdering() {
StyleTextPropAtom stpb = new StyleTextPropAtom(data_b,0,data_b.length);
stpb.setParentTextSize(data_b_text_len);
@@ -260,7 +260,7 @@ public final class TestStyleTextPropAtom
}
@Test
- public void testParagraphProps() {
+ void testParagraphProps() {
StyleTextPropAtom stpb = new StyleTextPropAtom(data_b,0,data_b.length);
stpb.setParentTextSize(data_b_text_len);
@@ -305,7 +305,7 @@ public final class TestStyleTextPropAtom
}
@Test
- public void testCharacterProps() {
+ void testCharacterProps() {
StyleTextPropAtom stpb = new StyleTextPropAtom(data_b,0,data_b.length);
stpb.setParentTextSize(data_b_text_len);
@@ -377,7 +377,7 @@ public final class TestStyleTextPropAtom
}
@Test
- public void testFindAddTextProp() {
+ void testFindAddTextProp() {
StyleTextPropAtom stpb = new StyleTextPropAtom(data_b,0,data_b.length);
stpb.setParentTextSize(data_b_text_len);
@@ -437,7 +437,7 @@ public final class TestStyleTextPropAtom
* constructor, and setting the required properties
*/
@Test
- public void testCreateAFromScatch() throws Exception {
+ void testCreateAFromScatch() throws Exception {
// Start with an empty one
StyleTextPropAtom stpa = new StyleTextPropAtom(54);
@@ -475,7 +475,7 @@ public final class TestStyleTextPropAtom
* constructor, and setting the required properties
*/
@Test
- public void testCreateBFromScatch() throws Exception {
+ void testCreateBFromScatch() throws Exception {
// Start with an empty one
StyleTextPropAtom stpa = new StyleTextPropAtom(data_b_text_len);
@@ -645,28 +645,28 @@ public final class TestStyleTextPropAtom
}
@Test
- public void testWriteA() throws IOException {
+ void testWriteA() throws IOException {
doReadWrite(data_a, -1);
}
@Test
- public void testLoadWriteA() throws IOException {
+ void testLoadWriteA() throws IOException {
doReadWrite(data_b, data_b_text_len);
}
@Test
- public void testWriteB() throws IOException {
+ void testWriteB() throws IOException {
doReadWrite(data_b, -1);
}
@Test
- public void testLoadWriteB() throws IOException {
+ void testLoadWriteB() throws IOException {
doReadWrite(data_b, data_b_text_len);
}
@Test
- public void testLoadWriteC() throws IOException {
+ void testLoadWriteC() throws IOException {
// BitMaskTextProperties will sanitize the output
byte[] expected = data_c.clone();
expected[56] = 0;
@@ -675,7 +675,7 @@ public final class TestStyleTextPropAtom
}
@Test
- public void testLoadWriteD() throws IOException {
+ void testLoadWriteD() throws IOException {
doReadWrite(data_d, data_d_text_len);
}
@@ -697,7 +697,7 @@ public final class TestStyleTextPropAtom
}
@Test
- public void testNotEnoughDataProp() {
+ void testNotEnoughDataProp() {
// We don't have enough data in the record to cover
// all the properties the mask says we have
// Make sure we just do the best we can
@@ -711,7 +711,7 @@ public final class TestStyleTextPropAtom
* Check the test data for Bug 40143.
*/
@Test
- public void testBug40143() {
+ void testBug40143() {
StyleTextPropAtom atom = new StyleTextPropAtom(data_d, 0, data_d.length);
atom.setParentTextSize(data_d_text_len);
@@ -734,7 +734,7 @@ public final class TestStyleTextPropAtom
* Check the test data for Bug 42677.
*/
@Test
- public void test42677() throws IOException {
+ void test42677() throws IOException {
int length = 18;
byte[] data = {
0x00, 0x00, (byte)0xA1, 0x0F, 0x28, 0x00, 0x00, 0x00,
@@ -760,7 +760,7 @@ public final class TestStyleTextPropAtom
* </StyleTextPropAtom>
*/
@Test
- public void test45815() throws IOException {
+ void test45815() throws IOException {
int length = 19;
byte[] data = {
0x00, 0x00, (byte)0xA1, 0x0F, 0x5E, 0x00, 0x00, 0x00, 0x14, 0x00,
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextBytesAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextBytesAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextBytesAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextBytesAtom.java Sat Jan 9 15:49:35 2021
@@ -41,26 +41,26 @@ public final class TestTextBytesAtom {
private final String alt_text = "This is a test title";
@Test
- public void testRecordType() {
+ void testRecordType() {
TextBytesAtom tba = new TextBytesAtom(data,0,data.length);
assertEquals(4008L, tba.getRecordType());
}
@Test
- public void testTextA() {
+ void testTextA() {
TextBytesAtom tba = new TextBytesAtom(data,0,data.length);
String data_text = "This is the title on page 2";
assertEquals(data_text, tba.getText());
}
@Test
- public void testTextB() {
+ void testTextB() {
TextBytesAtom tba = new TextBytesAtom(alt_data,0,alt_data.length);
assertEquals(alt_text, tba.getText());
}
@Test
- public void testChangeText() throws Exception {
+ void testChangeText() throws Exception {
TextBytesAtom tba = new TextBytesAtom(data,0,data.length);
tba.setText(alt_text.getBytes(StandardCharsets.ISO_8859_1));
@@ -70,7 +70,7 @@ public final class TestTextBytesAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
TextBytesAtom tba = new TextBytesAtom(data,0,data.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
tba.writeOut(baos);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextCharsAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextCharsAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextCharsAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextCharsAtom.java Sat Jan 9 15:49:35 2021
@@ -38,25 +38,25 @@ public final class TestTextCharsAtom {
private final String alt_text = "This\u01A3";
@Test
- public void testRecordType() {
+ void testRecordType() {
TextCharsAtom tca = new TextCharsAtom(data,0,data.length);
assertEquals(4000L, tca.getRecordType());
}
@Test
- public void testTextA() {
+ void testTextA() {
TextCharsAtom tca = new TextCharsAtom(data,0,data.length);
assertEquals(data_text, tca.getText());
}
@Test
- public void testTextB() {
+ void testTextB() {
TextCharsAtom tca = new TextCharsAtom(alt_data,0,alt_data.length);
assertEquals(alt_text, tca.getText());
}
@Test
- public void testChangeText() throws Exception {
+ void testChangeText() throws Exception {
TextCharsAtom tca = new TextCharsAtom(data,0,data.length);
tca.setText(alt_text);
@@ -66,7 +66,7 @@ public final class TestTextCharsAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
TextCharsAtom tca = new TextCharsAtom(data,0,data.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
tca.writeOut(baos);
@@ -74,7 +74,7 @@ public final class TestTextCharsAtom {
}
@Test
- public void testCreateNew() throws Exception {
+ void testCreateNew() throws Exception {
TextCharsAtom tca = new TextCharsAtom();
assertEquals(0, tca.getText().length());
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextHeaderAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextHeaderAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextHeaderAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextHeaderAtom.java Sat Jan 9 15:49:35 2021
@@ -36,13 +36,13 @@ public final class TestTextHeaderAtom {
private final byte[] body_data = { 0, 0, 0x9f-256, 0x0f, 4, 0, 0, 0, 1, 0, 0, 0 };
@Test
- public void testRecordType() {
+ void testRecordType() {
TextHeaderAtom tha = new TextHeaderAtom(notes_data,0,12);
assertEquals(3999L, tha.getRecordType());
}
@Test
- public void testTypes() {
+ void testTypes() {
TextHeaderAtom n_tha = new TextHeaderAtom(notes_data,0,12);
TextHeaderAtom t_tha = new TextHeaderAtom(title_data,0,12);
TextHeaderAtom b_tha = new TextHeaderAtom(body_data,0,12);
@@ -52,7 +52,7 @@ public final class TestTextHeaderAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
TextHeaderAtom tha = new TextHeaderAtom(notes_data,0,12);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
tha.writeOut(baos);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextRulerAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextRulerAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextRulerAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextRulerAtom.java Sat Jan 9 15:49:35 2021
@@ -43,7 +43,7 @@ public final class TestTextRulerAtom {
};
@Test
- public void testReadRuler() {
+ void testReadRuler() {
TextRulerAtom ruler = new TextRulerAtom(data_1, 0, data_1.length);
assertEquals(ruler.getNumberOfLevels(), 0);
assertEquals(ruler.getDefaultTabSize(), 0);
@@ -59,7 +59,7 @@ public final class TestTextRulerAtom {
}
@Test
- public void testWriteRuler() throws Exception {
+ void testWriteRuler() throws Exception {
TextRulerAtom ruler = new TextRulerAtom(data_1, 0, data_1.length);
ByteArrayOutputStream out = new ByteArrayOutputStream();
ruler.writeOut(out);
@@ -69,7 +69,7 @@ public final class TestTextRulerAtom {
}
@Test
- public void testRead2() throws Exception {
+ void testRead2() throws Exception {
TextRulerAtom ruler = TextRulerAtom.getParagraphInstance();
ruler.setParagraphIndent((short)249, (short)321);
ByteArrayOutputStream out = new ByteArrayOutputStream();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextSpecInfoAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextSpecInfoAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextSpecInfoAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTextSpecInfoAtom.java Sat Jan 9 15:49:35 2021
@@ -41,7 +41,7 @@ public final class TestTextSpecInfoAtom
};
@Test
- public void testRead() {
+ void testRead() {
TextSpecInfoAtom spec = new TextSpecInfoAtom(data_1, 0, data_1.length);
TextSpecInfoRun[] run = spec.getTextSpecInfoRuns();
assertEquals(5, run.length);
@@ -54,7 +54,7 @@ public final class TestTextSpecInfoAtom
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
TextSpecInfoAtom spec = new TextSpecInfoAtom(data_1, 0, data_1.length);
ByteArrayOutputStream out = new ByteArrayOutputStream();
spec.writeOut(out);
@@ -62,7 +62,7 @@ public final class TestTextSpecInfoAtom
}
@Test
- public void testReset() throws Exception {
+ void testReset() throws Exception {
TextSpecInfoAtom spec = new TextSpecInfoAtom(data_1, 0, data_1.length);
spec.reset(32); //length of the parent text
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxInteractiveInfoAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxInteractiveInfoAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxInteractiveInfoAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxInteractiveInfoAtom.java Sat Jan 9 15:49:35 2021
@@ -41,7 +41,7 @@ public final class TestTxInteractiveInfo
};
@Test
- public void testRead() {
+ void testRead() {
TxInteractiveInfoAtom ia1 = new TxInteractiveInfoAtom(data_a, 0, data_a.length);
assertEquals(4063, ia1.getRecordType());
@@ -56,7 +56,7 @@ public final class TestTxInteractiveInfo
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
TxInteractiveInfoAtom atom = new TxInteractiveInfoAtom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
atom.writeOut(baos);
@@ -65,7 +65,7 @@ public final class TestTxInteractiveInfo
// Create A from scratch
@Test
- public void testCreate() throws Exception {
+ void testCreate() throws Exception {
TxInteractiveInfoAtom ia = new TxInteractiveInfoAtom();
// Set values
@@ -80,7 +80,7 @@ public final class TestTxInteractiveInfo
// Try to turn a into b
@Test
- public void testChange() throws Exception {
+ void testChange() throws Exception {
TxInteractiveInfoAtom ia = new TxInteractiveInfoAtom(data_a, 0, data_a.length);
// Change the number
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestTxMasterStyleAtom.java Sat Jan 9 15:49:35 2021
@@ -47,7 +47,7 @@ public final class TestTxMasterStyleAtom
}
@Test
- public void testDefaultStyles() {
+ void testDefaultStyles() {
TxMasterStyleAtom[] txmaster = getMasterStyles();
for (final TxMasterStyleAtom atom : txmaster) {
final int txtype = atom.getTextType();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestUserEditAtom.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestUserEditAtom.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestUserEditAtom.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/record/TestUserEditAtom.java Sat Jan 9 15:49:35 2021
@@ -36,13 +36,13 @@ public final class TestUserEditAtom {
5, 0, 0, 0, 1, 0, 0xF6-256, 77 };
@Test
- public void testRecordType() {
+ void testRecordType() {
UserEditAtom uea = new UserEditAtom(data_a, 0, data_a.length);
assertEquals(4085L, uea.getRecordType());
}
@Test
- public void testFlags() {
+ void testFlags() {
UserEditAtom uea = new UserEditAtom(data_a, 0, data_a.length);
assertEquals(256, uea.getLastViewedSlideID() );
@@ -55,7 +55,7 @@ public final class TestUserEditAtom {
}
@Test
- public void testWrite() throws Exception {
+ void testWrite() throws Exception {
UserEditAtom uea = new UserEditAtom(data_a, 0, data_a.length);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
uea.writeOut(baos);
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestAddingSlides.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestAddingSlides.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestAddingSlides.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestAddingSlides.java Sat Jan 9 15:49:35 2021
@@ -70,7 +70,7 @@ public final class TestAddingSlides {
* Test adding a slide to an empty slideshow
*/
@Test
- public void testAddSlideToEmpty() throws IOException {
+ void testAddSlideToEmpty() throws IOException {
// Doesn't have any slides
assertEquals(0, ss_empty.getSlides().size());
@@ -119,7 +119,7 @@ public final class TestAddingSlides {
* Test adding a slide to an existing slideshow
*/
@Test
- public void testAddSlideToExisting() throws IOException {
+ void testAddSlideToExisting() throws IOException {
// Has one slide
assertEquals(1, ss_one.getSlides().size());
HSLFSlide s1 = ss_one.getSlides().get(0);
@@ -165,7 +165,7 @@ public final class TestAddingSlides {
* Test adding a slide to an existing slideshow, with two slides already
*/
@Test
- public void testAddSlideToExisting2() throws IOException {
+ void testAddSlideToExisting2() throws IOException {
// grab UserEditAtom
UserEditAtom usredit = null;
Record[] _records = ss_two.getSlideShowImpl().getRecords();
@@ -224,7 +224,7 @@ public final class TestAddingSlides {
* Test SlideShow#removeSlide
*/
@Test
- public void testRemoving() throws IOException {
+ void testRemoving() throws IOException {
HSLFSlide slide1 = ss_empty.createSlide();
HSLFSlide slide2 = ss_empty.createSlide();
@@ -249,7 +249,7 @@ public final class TestAddingSlides {
}
@Test
- public void test47261() throws IOException {
+ void test47261() throws IOException {
HSLFSlideShow ppt = HSLFTestDataSamples.getSlideShow("47261.ppt");
List<HSLFSlide> slides = ppt.getSlides();
Document doc = ppt.getDocumentRecord();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestCounts.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestCounts.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestCounts.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestCounts.java Sat Jan 9 15:49:35 2021
@@ -31,7 +31,7 @@ import org.junit.jupiter.api.Test;
*/
public final class TestCounts {
@Test
- public void testSheetsCount() throws IOException {
+ void testSheetsCount() throws IOException {
HSLFSlideShow ppt = HSLFTestDataSamples.getSlideShow("basic_test_ppt_file.ppt");
List<HSLFSlide> slides = ppt.getSlides();
@@ -54,7 +54,7 @@ public final class TestCounts {
}
@Test
- public void testNotesCount() throws IOException {
+ void testNotesCount() throws IOException {
HSLFSlideShow ppt = HSLFTestDataSamples.getSlideShow("basic_test_ppt_file.ppt");
List<HSLFNotes> notes = ppt.getNotes();
Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestHSLFSlideShowFactory.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestHSLFSlideShowFactory.java?rev=1885302&r1=1885301&r2=1885302&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestHSLFSlideShowFactory.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestHSLFSlideShowFactory.java Sat Jan 9 15:49:35 2021
@@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test;
public final class TestHSLFSlideShowFactory extends BaseTestSlideShowFactory {
@Test
- public void testFactory() throws Exception {
+ void testFactory() throws Exception {
testFactory("pictures.ppt", "Password_Protected-hello.ppt", "hello");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org