Package com.google.caja.reporting

Examples of com.google.caja.reporting.TestBuildInfo


        "com.google.caja",
        bindings.get("cajolerName").getValue());

    assertTrue(bindings.get("cajolerVersion") instanceof StringLiteral);
    assertEquals(
        new TestBuildInfo().getBuildVersion(),
        bindings.get("cajolerVersion").getValue());

    assertTrue(bindings.get("cajoledDate") instanceof IntegerLiteral);
    assertEquals(
        Long.valueOf(new TestBuildInfo().getCurrentTime()),
        bindings.get("cajoledDate").getValue());
  }
View Full Code Here


  }

  private double runCajoledES53(String filename) throws Exception {
    PluginMeta meta = new PluginMeta();
    MessageQueue mq = new SimpleMessageQueue();
    PluginCompiler pc = new PluginCompiler(new TestBuildInfo(), meta, mq);
    CharProducer src = fromString(plain(fromResource(filename)));
    pc.addInput(js(src), is.getUri());

    if (!pc.run()) {
      return -1;
View Full Code Here

TOP

Related Classes of com.google.caja.reporting.TestBuildInfo

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.