1 16 package com.google.gwt.junit.client; 17 18 import com.google.gwt.junit.JUnitShell; 19 20 import junit.framework.TestCase; 21 import junit.framework.TestResult; 22 23 37 public abstract class GWTTestCase extends TestCase { 38 39 42 private TestResult testResult = null; 43 44 55 public final void addCheckpoint(String msg) { 56 } 58 59 69 public boolean catchExceptions() { 70 return true; 71 } 72 73 81 public final void clearCheckpoints() { 82 } 84 85 94 public final String [] getCheckpoints() { 95 return null; 97 } 98 99 106 public abstract String getModuleName(); 107 108 112 public final void run(TestResult result) { 113 testResult = result; 114 super.run(result); 115 } 116 117 148 protected final void delayTestFinish(int timeoutMillis) { 149 } 151 152 175 protected final void finishTest() { 176 } 178 179 185 protected final TestResults getTestResults() { 186 return null; 188 } 189 190 193 protected final void runTest() throws Throwable { 194 JUnitShell.runTest(getModuleName(), this, testResult); 195 } 196 } 197 | Popular Tags |