public String toHTML(){
  List<TestCase> failed=getFailedTestCases();
  List<TestCase> passed=getPassedTestCases();
  List<TestCase> skipped=getSkippedTestCases();
  StringBuffer buff=new StringBuffer();
  for (  TestCase tc : failed) {
    buff.append(tc.toHTML());
  }
  for (  TestCase tc : passed) {
    buff.append(tc.toHTML());
  }
  for (  TestCase tc : skipped) {
    buff.append(tc.toHTML());
  }
  Object[] params={name,buff.toString()};
  return MessageFormat.format(HTMLConstants.TEST_TABLE,params);
}

public String toHTML ( ) { List < TestCase > failed = getFailedTestCases ( ) ; List < TestCase > passed = getPassedTestCases ( ) ; List < TestCase > skipped = getSkippedTestCases ( ) ; StringBuffer buff = new StringBuffer ( ) ; for ( TestCase tc : failed ) { buff . append ( tc . toHTML ( ) ) ; } for ( TestCase tc : passed ) { buff . append ( tc . toHTML ( ) ) ; } for ( TestCase tc : skipped ) { buff . append ( tc . toHTML ( ) ) ; } Object [ ] params = { name , buff . toString ( ) } ; return MessageFormat . format ( HTMLConstants . TEST_TABLE , params ) ; }
returns html markup for this object .
