| java.lang.Object com.google.gwt.core.ext.Generator com.google.gwt.junit.rebind.JUnitTestCaseStubGenerator
All known Subclasses: com.google.gwt.junit.rebind.BenchmarkGenerator,
JUnitTestCaseStubGenerator | public class JUnitTestCaseStubGenerator extends Generator (Code) | | This class generates a stub class for classes that derive from GWTTestCase.
This stub class provides the necessary bridge between our Hosted or Hybrid
mode classes and the JUnit system.
|
Inner Class :interface MethodFilter | |
getAllMethods | static Map<String, List<JMethod>> getAllMethods(JClassType type, MethodFilter filter)(Code) | | Like JClassType.getMethod( String name ), except:
it accepts a filter
it searches the inheritance hierarchy (includes subclasses)
For methods which are overriden, only the most derived implementations are included.
Parameters: type - The type to search. Must not be null Map> The set of matching methods. Will not be null. |
getTestMethodNames | public static String[] getTestMethodNames(JClassType requestedClass)(Code) | | Returns the method names for the set of methods that are strictly JUnit
test methods (have no arguments).
Parameters: requestedClass - |
isJUnitTestMethod | static boolean isJUnitTestMethod(JMethod method, boolean acceptArgs)(Code) | | Returns true if the method is considered to be a valid JUnit test method.
The criteria are that the method's name begin with "test" and have public
access. The method may be static. You must choose to include or exclude
methods which have arguments.
|
|
|