Ignore:
Timestamp:
06/25/09 16:11:21 (3 years ago)
Author:
jharrop
Message:

keep up with refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/test/java/org/docx4j/diff/ParagraphDifferencerTest.java

    r543 r849  
    2121 
    2222import static org.junit.Assert.*; 
    23 import org.docx4j.diff.ParagraphDifferencer; 
     23import org.docx4j.diff.Differencer; 
    2424 
    2525import javax.xml.bind.JAXBContext; 
     
    5050                                 
    5151                                // 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]); 
    5454                                 
    5555                                // Result format 
     
    5757                 
    5858                                // 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); 
    6062                                 
    6163                        } 
     
    8486                                // Test setup 
    8587                                wordMLPackage.getMainDocumentPart().addParagraphOfText("first:"); 
    86                                 P pl = ParagraphDifferencer.loadParagraph(BASE_DIR + testparagraphs[i]); 
     88                                P pl = Differencer.loadParagraph(BASE_DIR + testparagraphs[i]); 
    8789                                wordMLPackage.getMainDocumentPart().addObject(pl); 
    8890                                 
    8991                                wordMLPackage.getMainDocumentPart().addParagraphOfText("second:"); 
    90                                 P pr = ParagraphDifferencer.loadParagraph(BASE_DIR + testparagraphs[j]); 
     92                                P pr = Differencer.loadParagraph(BASE_DIR + testparagraphs[j]); 
    9193                                wordMLPackage.getMainDocumentPart().addObject(pr); 
    9294                                 
     
    9698                 
    9799                                // 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); 
    99103                                 
    100104                                try { 
     
    111115                                         
    112116                                        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); 
    114119                                         
    115120                                } 
     
    117122                                // Compare no pre-processor 
    118123                                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);                             
    120126                                try { 
    121127                                        P markedUpPsimple = (org.docx4j.wml.P)result.getResult();                                
     
    130136                                         
    131137                                        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); 
    133140                                         
    134141                                } 
Note: See TracChangeset for help on using the changeset viewer.