Package com.google.caliper.json

Examples of com.google.caliper.json.GsonModule


      Class<?> benchmarkClass = benchmarkClassForName(options.benchmarkClassName());
      Injector injector = optionsInjector.createChildInjector(
          new BenchmarkClassModule(benchmarkClass),
          new OutputModule(stdout, stderr),
          new BridgeModule(),
          new GsonModule(),
          new ConfigModule(),
          new ServiceModule(),
          runnerModule);
      if (options.printConfiguration()) {
        stdout.println("Configuration:");
View Full Code Here


*/
public final class WorkerMain {
  private WorkerMain() {}

  public static void main(String[] args) throws Exception {
    Injector gsonInjector = Guice.createInjector(PRODUCTION, new GsonModule());
    WorkerSpec request =
        gsonInjector.getInstance(Gson.class).fromJson(args[0], WorkerSpec.class);

    Injector workerInjector = gsonInjector.createChildInjector(
        new BenchmarkClassModule(Class.forName(request.benchmarkSpec.className())),
View Full Code Here

public class LogMessageParserTest {
  @Inject LogMessageParser parser;

  @Before public void setUp() {
    Injector injector = Guice.createInjector(new GsonModule(), new BridgeModule());
    injector.injectMembers(this);
  }
View Full Code Here

public class ControlMessageRoundTripTest {
  @Inject LogMessageParser parser;
  @Inject ControlLogMessageRenderer renderer;

  @Before public void setUp() {
    Injector injector = Guice.createInjector(new GsonModule(), new BridgeModule());
    injector.injectMembers(this);
  }
View Full Code Here

TOP

Related Classes of com.google.caliper.json.GsonModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.