@ SuppressWarnings ( "unchecked" ) public List < Difference > compare ( ) { Diff diff = new Diff ( this . controlDOM , this . testDOM ) ; DetailedDiff detDiff = new DetailedDiff ( diff ) ; return detDiff . getAllDifferences ( ) ; }
Compare the controlDOM and testDOM and save and return the differences in a list .