com.google.gwt.benchmarks.rebind
Class BenchmarkGenerator

java.lang.Object
  extended by Generator
      extended by com.google.gwt.junit.rebind.JUnitTestCaseStubGenerator
          extended by com.google.gwt.benchmarks.rebind.BenchmarkGenerator

public class BenchmarkGenerator
extends JUnitTestCaseStubGenerator

Implements a generator for Benchmark classes. Benchmarks require additional code generation above and beyond standard JUnit tests.


Constructor Summary
BenchmarkGenerator()
           
 
Method Summary
static java.util.Map<java.lang.String,JMethod> getNotOverloadedTestMethods(JClassType requestedClass)
          Returns all the zero-argument JUnit test methods that do not have overloads.
static java.util.Map<java.lang.String,JMethod> getParameterizedTestMethods(JClassType requestedClass, TreeLogger logger)
          Returns all the JUnit test methods that are overloaded test methods with parameters.
 void writeSource()
           
 
Methods inherited from class com.google.gwt.junit.rebind.JUnitTestCaseStubGenerator
generate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BenchmarkGenerator

public BenchmarkGenerator()
Method Detail

getNotOverloadedTestMethods

public static java.util.Map<java.lang.String,JMethod> getNotOverloadedTestMethods(JClassType requestedClass)
Returns all the zero-argument JUnit test methods that do not have overloads.

Returns:
Map

getParameterizedTestMethods

public static java.util.Map<java.lang.String,JMethod> getParameterizedTestMethods(JClassType requestedClass,
                                                                                  TreeLogger logger)
Returns all the JUnit test methods that are overloaded test methods with parameters. Does not include the zero-argument test methods.

Returns:
Map

writeSource

public void writeSource()
                 throws UnableToCompleteException
Throws:
UnableToCompleteException