public class

BenchmarkGenerator

extends JUnitTestCaseStubGenerator
java.lang.Object
   ↳ com.google.gwt.core.ext.Generator
     ↳ com.google.gwt.junit.rebind.JUnitTestCaseStubGenerator
       ↳ com.google.gwt.benchmarks.rebind.BenchmarkGenerator

Class Overview

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

Summary

[Expand]
Inherited Fields
From class com.google.gwt.junit.rebind.JUnitTestCaseStubGenerator
Public Constructors
BenchmarkGenerator()
Public Methods
static Map<String, JMethod> getNotOverloadedTestMethods(JClassType requestedClass)
Returns all the zero-argument JUnit test methods that do not have overloads.
static Map<String, JMethod> getParameterizedTestMethods(JClassType requestedClass, TreeLogger logger)
Returns all the JUnit test methods that are overloaded test methods with parameters.
void writeSource()
[Expand]
Inherited Methods
From class com.google.gwt.junit.rebind.JUnitTestCaseStubGenerator
From class com.google.gwt.core.ext.Generator
From class java.lang.Object

Public Constructors

public BenchmarkGenerator ()

Public Methods

public static Map<String, JMethod> getNotOverloadedTestMethods (JClassType requestedClass)

Returns all the zero-argument JUnit test methods that do not have overloads.

Returns
  • Map

public static Map<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

public void writeSource ()

Throws
UnableToCompleteException