1 16 package com.google.gwt.junit.client; 17 18 import com.google.gwt.junit.client.impl.ExceptionWrapper; 19 import com.google.gwt.user.client.rpc.IsSerializable; 20 21 import java.util.Map ; 22 import java.util.HashMap ; 23 24 33 public class Trial implements IsSerializable { 34 35 ExceptionWrapper exceptionWrapper; 36 37 double runTimeMillis; 38 39 transient Throwable exception; 41 42 45 Map variables; 46 47 55 public Trial(Map variables, double runTimeMillis, 56 ExceptionWrapper exceptionWrapper) { 57 this.variables = variables; 58 this.runTimeMillis = runTimeMillis; 59 this.exceptionWrapper = exceptionWrapper; 60 } 61 62 public Trial() { 63 this.variables = new HashMap (); 64 } 65 66 public Throwable getException() { 67 return exception; 68 } 69 70 public ExceptionWrapper getExceptionWrapper() { 71 return exceptionWrapper; 72 } 73 74 public double getRunTimeMillis() { 75 return runTimeMillis; 76 } 77 78 82 public Map getVariables() { 83 return variables; 84 } 85 86 public void setException(Throwable exception) { 87 this.exception = exception; 88 } 89 90 public void setExceptionWrapper(ExceptionWrapper exceptionWrapper) { 91 this.exceptionWrapper = exceptionWrapper; 92 } 93 94 public void setRunTimeMillis(double runTimeMillis) { 95 this.runTimeMillis = runTimeMillis; 96 } 97 98 public String toString() { 99 return "variables: " + variables + ", exceptionWrapper: " + exceptionWrapper 100 + ", runTimeMillis: " + runTimeMillis; 101 } 102 } 103 | Popular Tags |