Examples of call()


Examples of com.google.gerrit.server.changedetail.RestoreChange.call()

      PatchSetInfoNotAvailableException, RepositoryNotFoundException,
      IOException {
    final RestoreChange restoreChange = restoreChangeProvider.get();
    restoreChange.setChangeId(patchSetId.getParentKey());
    restoreChange.setMessage(message);
    final ReviewResult result = restoreChange.call();
    if (result.getErrors().size() > 0) {
      throw new NoSuchChangeException(result.getChangeId());
    }
    return changeDetailFactory.create(result.getChangeId()).call();
  }
View Full Code Here

Examples of com.google.refine.expr.functions.ToString.call()

            } else if (o1 == null) {
                s = "";
            } else {
                // Use our own ToString so that formatting is consistent
                ToString toString = new ToString();
                s = toString.call(bindings,new Object[] {o1});
            }
            if (o2 instanceof String) {
                String mode = ((String) o2).toLowerCase();
                if ("html".equals(mode)) {
                    return StringEscapeUtils.escapeHtml(s);
View Full Code Here

Examples of com.google.refine.grel.Function.call()

        Function function = ControlFunctionRegistry.getFunction(name);
        if (function == null) {
            throw new IllegalArgumentException("Unknown function "+name);
        }
        if (args == null) {
            return function.call(bindings,new Object[0]);
        } else {
            return function.call(bindings,args);
        }
    }
   
View Full Code Here

Examples of com.google.sitebricks.persist.Persister.call()

    config2.setMaxConnectionsPerPartition(2);
  }

  private static void createTable(Injector injector, Class<? extends Annotation> selector) {
    Persister persister = injector.getInstance(Key.get(Persister.class, selector));
    persister.call(new Persister.InWork() {
      @Override
      public Object perform(EntityStore es) throws Throwable {
        ((Sql) es.delegate()).execute("create table my_table (id integer, name text not null)");
        return null;
      }
View Full Code Here

Examples of com.google.sitebricks.stat.testservices.ChildDummyService.call()

   * a child class is published.
   */
  @Test public void testPublishingStatsInChildService() {
    ChildDummyService service = injector.getInstance(ChildDummyService.class);

    service.call();
    service.call();

    Stats stats = injector.getInstance(Stats.class);
    ImmutableMap<StatDescriptor, Object> snapshot = stats.snapshot();

View Full Code Here

Examples of com.google.sitebricks.stat.testservices.DummyService.call()

  @Test
  public final void testPublishingStatsInDummyService() {
    DummyService service = injector.getInstance(DummyService.class);

    service.call();
    service.call();
    service.call();

    Stats stats = injector.getInstance(Stats.class);
    ImmutableMap<StatDescriptor, Object> snapshot = stats.snapshot();
View Full Code Here

Examples of com.google.sitebricks.stat.testservices.StatExposerTestingService.call()

  @Test
  public final void testPublishingUsingDifferentExposers() {
    StatExposerTestingService service =
        injector.getInstance(StatExposerTestingService.class);

    service.call();
    service.call();

    Stats stats = injector.getInstance(Stats.class);
    ImmutableMap<StatDescriptor, Object> snapshot = stats.snapshot();
    assertEquals(snapshot.size(), 8, "Snapshot has unexpected size: " + snapshot);
View Full Code Here

Examples of com.google.sitebricks.stat.testservices.StaticDummyService.call()

    StaticDummyService.reset();
    StaticDummyService service1 = injector.getInstance(StaticDummyService.class);
    StaticDummyService service2 = injector.getInstance(StaticDummyService.class);

    service1.call();
    service2.call();

    Stats stats = injector.getInstance(Stats.class);
    ImmutableMap<StatDescriptor, Object> snapshot = stats.snapshot();
    assertEquals(snapshot.size(), 1);
    StatDescriptor staticCallsDescriptor =
View Full Code Here

Examples of com.google.uzaygezen.core.TestUtils.IntArrayCallback.call()

  @Test
  public void generate() {
    IntArrayCallback mock = EasyMock.createMock(IntArrayCallback.class);
    final int maxSum = 10;
    mock.call(EasyMock.aryEq(new int[0]));
    for (int i = 0; i <= maxSum; ++i) {
      mock.call(EasyMock.aryEq(new int[] {i}));
      for (int j = 0; j <= maxSum - i; ++j) {
        mock.call(EasyMock.aryEq(new int[] {i, j}));
        for (int k = 0; k <= maxSum - i - j; ++k) {
View Full Code Here

Examples of com.googlecode.aviator.runtime.function.system.SysDateFunction.call()

public class SysDateFunctionUnitTest {
    @Test
    public void testCall() {
        SysDateFunction fun = new SysDateFunction();

        AviatorObject result = fun.call(null);
        assertNotNull(result);
        assertTrue(result.getValue(null) instanceof Date);
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.