- Timestamp:
- 06/25/09 16:11:21 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/test/java/org/docx4j/diff/ParagraphDifferencerTest.java
r543 r849 21 21 22 22 import static org.junit.Assert.*; 23 import org.docx4j.diff. ParagraphDifferencer;23 import org.docx4j.diff.Differencer; 24 24 25 25 import javax.xml.bind.JAXBContext; … … 50 50 51 51 // Test setup 52 P pl = ParagraphDifferencer.loadParagraph(BASE_DIR + testparagraphs[i]);53 P pr = ParagraphDifferencer.loadParagraph(BASE_DIR + testparagraphs[j]);52 P pl = Differencer.loadParagraph(BASE_DIR + testparagraphs[i]); 53 P pr = Differencer.loadParagraph(BASE_DIR + testparagraphs[j]); 54 54 55 55 // Result format … … 57 57 58 58 // Run the diff 59 ParagraphDifferencer.diff(pl, pr, result, null, null); 59 Differencer pd = new Differencer(); 60 pd.diff(pl, pr, result, null, null, 61 null, null); 60 62 61 63 } … … 84 86 // Test setup 85 87 wordMLPackage.getMainDocumentPart().addParagraphOfText("first:"); 86 P pl = ParagraphDifferencer.loadParagraph(BASE_DIR + testparagraphs[i]);88 P pl = Differencer.loadParagraph(BASE_DIR + testparagraphs[i]); 87 89 wordMLPackage.getMainDocumentPart().addObject(pl); 88 90 89 91 wordMLPackage.getMainDocumentPart().addParagraphOfText("second:"); 90 P pr = ParagraphDifferencer.loadParagraph(BASE_DIR + testparagraphs[j]);92 P pr = Differencer.loadParagraph(BASE_DIR + testparagraphs[j]); 91 93 wordMLPackage.getMainDocumentPart().addObject(pr); 92 94 … … 96 98 97 99 // Run the diff 98 ParagraphDifferencer.diff(pl, pr, result, null, null, true); 100 Differencer pd = new Differencer(); 101 pd.diff(pl, pr, result, null, null, 102 null, null); 99 103 100 104 try { … … 111 115 112 116 StreamResult err = new StreamResult(System.out); 113 ParagraphDifferencer.diff(pl, pr, err, null, null, true); 117 pd.diff(pl, pr, err, null, null, 118 null, null); 114 119 115 120 } … … 117 122 // Compare no pre-processor 118 123 result = new javax.xml.bind.util.JAXBResult(jc ); 119 ParagraphDifferencer.diff(pl, pr, result, null, null, false); 124 pd.diff(pl, pr, result, null, null, 125 null, null); 120 126 try { 121 127 P markedUpPsimple = (org.docx4j.wml.P)result.getResult(); … … 130 136 131 137 StreamResult err = new StreamResult(System.out); 132 ParagraphDifferencer.diff(pl, pr, err, null, null, false); 138 pd.diff(pl, pr, err, null, null, 139 null, null); 133 140 134 141 }
Note: See TracChangeset
for help on using the changeset viewer.
