View Javadoc
1 /*** 2 * Created by Nicolas FRANK 3 * @mail: nicolas.frank@laposte.net 4 * Date: Nov 11, 2002 5 * Time: 1:05:35 AM 6 */ 7 package remoteTester.framework; 8 9 import junit.framework.TestResult; 10 11 import java.io.Serializable; 12 13 /*** 14 * This class encapsulate Server Side TestRunner result 15 * in order to bring the result on client runner side 16 */ 17 public class TestResultRemote implements Serializable { 18 19 /*** 20 * the testcase execution result 21 */ 22 private String output; 23 /*** 24 * indicate if test succeded 25 */ 26 private boolean wasSuccessful; 27 28 /*** 29 * constructor 30 * 31 * @param output the TestCase result message 32 */ 33 public TestResultRemote(String output) { 34 this.output = output; 35 this.wasSuccessful = false; 36 37 } 38 39 public void setTestResult(TestResult testResult) { 40 41 } 42 43 /*** 44 * accessor to the result message 45 * 46 * @return the result message 47 */ 48 public String getOutput() { 49 return output; 50 } 51 52 /*** 53 * result message setter 54 * 55 * @param output the result message 56 */ 57 public void setOutput(String output) { 58 this.output = output; 59 } 60 61 /*** 62 * success 63 * 64 * @return if the test success 65 */ 66 public boolean wasSuccessful() { 67 return wasSuccessful; 68 } 69 70 /*** 71 * set the test as succeded 72 */ 73 public void setWasSuccessful() { 74 this.wasSuccessful = true; 75 } 76 }

This page was automatically generated by Maven