Skip to content

Commit 0dcc514

Browse files
committed
Fix failed tests
1 parent 419c525 commit 0dcc514

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Examples/ApiExamples/Java/src/main/java/Examples/ExDocumentBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2759,7 +2759,7 @@ public void insertVideoWithUrl() throws Exception {
27592759
doc = new Document(getArtifactsDir() + "DocumentBuilder.InsertVideoWithUrl.docx");
27602760
Shape shape = (Shape) doc.getChild(NodeType.SHAPE, 0, true);
27612761

2762-
TestUtil.verifyImageInShape(480, 360, ImageType.PNG, shape);
2762+
TestUtil.verifyImageInShape(480, 360, ImageType.JPEG, shape);
27632763

27642764
Assert.assertEquals(360.0d, shape.getWidth());
27652765
Assert.assertEquals(270.0d, shape.getHeight());

Examples/ApiExamples/Java/src/main/java/Examples/ExMarkdownSaveOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public void exportTableAsHtml() throws Exception
311311
//ExEnd:ExportTableAsHtml
312312

313313
String outDocContents = FileUtils.readFileToString(new File(getArtifactsDir() + "MarkdownSaveOptions.ExportTableAsHtml.md"), StandardCharsets.UTF_8);
314-
Assert.assertEquals("Sample table:\r\n<table cellspacing=\"0\" cellpadding=\"0\" style=\"width:100%; border:0.75pt solid #000000; border-collapse:collapse\">" +
314+
Assert.assertEquals("\uFEFFSample table:\r\n<table cellspacing=\"0\" cellpadding=\"0\" style=\"width:100%; border:0.75pt solid #000000; border-collapse:collapse\">" +
315315
"<tr><td style=\"border-right-style:solid; border-right-width:0.75pt; padding-right:5.03pt; padding-left:5.03pt; vertical-align:top\">" +
316316
"<p style=\"margin-top:0pt; margin-bottom:0pt; text-align:right; font-size:12pt\"><span style=\"font-family:'Times New Roman'\">Cell1</span></p>" +
317317
"</td><td style=\"border-left-style:solid; border-left-width:0.75pt; padding-right:5.03pt; padding-left:5.03pt; vertical-align:top\">" +

Examples/ApiExamples/Java/src/main/java/Examples/ExReportingEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public void insertImageDynamicallyByBytes() throws Exception {
404404
template.save(getArtifactsDir() + "ReportingEngine.InsertImageDynamically.docx");
405405
}
406406

407-
@Test(enabled = false, description = "https://issue.auckland.dynabic.com/issues/WORDSJAVA-2978")
407+
@Test
408408
public void insertImageDynamicallyByUri() throws Exception {
409409
Document template =
410410
DocumentHelper.createTemplateDocumentWithDrawObjects("<<image [src.getImageString()]>>", ShapeType.TEXT_BOX);

0 commit comments

Comments
 (0)