1 39 40 package com.sun.japex; 41 42 import java.util.Properties ; 43 import java.util.Enumeration ; 44 45 public class TestCase extends Params implements Cloneable { 46 47 final String _testName; 48 49 public TestCase(String testName, Properties params) { 50 super(params); 51 _testName = testName; 52 } 53 54 public Object clone() { 55 return new TestCase(_testName, (Properties ) getParams().clone()); 56 } 57 58 public String getTestName() { 59 return _testName; 60 } 61 62 public void serialize(StringBuffer buffer, int spaces) { 63 buffer.append(Util.getSpaces(spaces) 64 +"<testCase name=\"" + _testName + "\">\n"); 65 super.serialize(buffer, 6); 66 buffer.append(Util.getSpaces(spaces) + "</testCase>\n"); 67 } 68 } 69 | Popular Tags |