public boolean compareTestFile(String test,String diff,int width,int height) throws Exception {
  String tin=xhtmlToDiff(test,width,height);
  String din=null;
  try {
    din=Uu.file_to_string(diff);
  }
 catch (  FileNotFoundException ex) {
    XRLog.log("unittests",Level.WARNING,"diff file missing");
    return false;
  }
  if (tin.equals(din)) {
    return true;
  }
  XRLog.log("unittests",Level.WARNING,"warning not equals");
  File dfile=new File("correct.diff");
  File tfile=new File("test.diff");
  XRLog.log("unittests",Level.WARNING,"writing to " + dfile + " and "+ tfile);
  Uu.string_to_file(tin,tfile);
  Uu.string_to_file(din,dfile);
  return false;
}

public boolean compareTestFile ( String test , String diff , int width , int height ) throws Exception { String tin = xhtmlToDiff ( test , width , height ) ; String din = null ; try { din = Uu . file_to_string ( diff ) ; } catch ( FileNotFoundException ex ) { XRLog . log ( "unittests" , Level . WARNING , "diff file missing" ) ; return false ; } if ( tin . equals ( din ) ) { return true ; } XRLog . log ( "unittests" , Level . WARNING , "warning not equals" ) ; File dfile = new File ( "correct.diff" ) ; File tfile = new File ( "test.diff" ) ; XRLog . log ( "unittests" , Level . WARNING , "writing to " + dfile + " and " + tfile ) ; Uu . string_to_file ( tin , tfile ) ; Uu . string_to_file ( din , dfile ) ; return false ; }
description of the method
