com.google.gwt.junit.rebind
Class JUnitTestCaseStubGenerator

java.lang.Object
  extended bycom.google.gwt.core.ext.Generator
      extended bycom.google.gwt.junit.rebind.JUnitTestCaseStubGenerator

public class JUnitTestCaseStubGenerator
extends Generator

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.


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
Constructor Summary
JUnitTestCaseStubGenerator(String reboundClassName)
           
 
Method Summary
 String generate(TreeLogger logger, GeneratorContext context, String typeName)
          Create a new type that statisfies the rebind request.
 
Methods inherited from class com.google.gwt.core.ext.Generator
escape
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode, toString
 

Constructor Detail

JUnitTestCaseStubGenerator

public JUnitTestCaseStubGenerator(String reboundClassName)
Method Detail

generate

public String generate(TreeLogger logger,
                       GeneratorContext context,
                       String typeName)
                throws UnableToCompleteException
Create a new type that statisfies the rebind request.

Specified by:
generate in class Generator
Returns:
the name of a subclass to substitute for the requested class, or return null to cause the requested type itself to be used
Throws:
UnableToCompleteException - if for any reason the generator cannot provide a substitute class


This javadoc distribution was not produced by Google. The official documentation is here.