import org.junit.jupiter.api.Test;
/**
- * Class to test that we handle embeded bits in OOXML files properly
+ * Class to test that we handle embedded bits in OOXML files properly
*/
class TestEmbedded {
@Test
/**
* Writes out the slideshow file the is represented by an instance
* of this class.
- * If you require all streams to be written out (eg Marcos, embeded
+ * If you require all streams to be written out (eg Marcos, embedded
* documents), then set {@code preserveNodes} set to {@code true}
*
* @param newFile The File to write to.
/**
* Writes out the slideshow file the is represented by an instance
* of this class.
- * If you require all streams to be written out (eg Marcos, embeded
+ * If you require all streams to be written out (eg Macros, embedded
* documents), then set {@code preserveNodes} set to {@code true}
*
* @param out The OutputStream to write to.
/**
* This constructor loads a Word document from a specific point
* in a POIFSFileSystem, probably not the default.
- * Used typically to open embeded documents.
+ * Used typically to open embedded documents.
*
* @param directory The DirectoryNode that contains the Word document.
* @throws IOException If there is an unexpected IOException from the passed
/**
* This constructor loads a Word document from a specific point
* in a POIFSFileSystem, probably not the default.
- * Used typically to open embeded documents.
+ * Used typically to open embedded documents.
*
* @param directory The DirectoryNode that contains the Word document.
* @throws IOException If there is an unexpected IOException from the passed
"\nThese are the notes on page two, again lacking formatting\n";
/**
- * Where our embeded files live
+ * Where our embedded files live
*/
private static final POIDataSamples slTests = POIDataSamples.getSlideShowInstance();
}
/**
- * A powerpoint file with embeded powerpoint files
+ * A powerpoint file with embedded powerpoint files
*/
@Test
void testExtractFromOwnEmbeded() throws IOException {
}
/**
- * A powerpoint file with embeded powerpoint files
+ * A powerpoint file with embedded powerpoint files
*/
@Test
void test52991() throws IOException {
/**
* When you embed another office document into Word, it stores
* a rendered "icon" picture of what that document looks like.
- * This image is re-created when you edit the embeded document,
+ * This image is re-created when you edit the embedded document,
* then used as-is to speed things up.
* Check that we can properly read one of these
*/
@Test
void testEmbededDocumentIcon() {
- // This file has two embeded excel files, an embeded powerpoint
- // file and an embeded word file, in that order
+ // This file has two embedded excel files, an embedded powerpoint
+ // file and an embedded word file, in that order
HWPFDocument doc = openSampleFile("word_with_embeded.doc");
// Check we don't break loading the pictures
doc.getPicturesTable().getAllPictures();
PicturesTable pictureTable = doc.getPicturesTable();
- // Check the text, and its embeded images
+ // Check the text, and its embedded images
Paragraph p;
Range r = doc.getRange();
assertEquals(1, r.numSections());
}
/**
- * Excel embeded in excel
+ * Excel embedded in excel
*/
@Test
- void testWithEmbededInOwn() throws Exception {
+ void testWithEmbeddedInOwn() throws Exception {
POIDataSamples ssSamples = POIDataSamples.getSpreadSheetInstance();
POIFSFileSystem fs = null;
HSSFWorkbook wbA = null, wbB = null;