Examples of invoke()


Examples of org.hivedb.util.classgen.ReflectionTools.SetterWrapper.invoke()

  }
  @Test
  public void testGetCorrespondingSetterWrapper() {
    Foo foo = new GenerateInstance<Foo>(Foo.class).generate();
    SetterWrapper setterWrapper = ReflectionTools.getCorrespondingSetterWrapper(foo, "getStroo", String.class);
    setterWrapper.invoke(foo, "x");
    Assert.assertEquals(foo.getStroo(), "x");
   
    setterWrapper = ReflectionTools.getCorrespondingSetterWrapper(ReflectionTools.getGetterOfProperty(Foo.class, "stroo"));
    setterWrapper.invoke(foo, "y");
    Assert.assertEquals(foo.getStroo(), "y");
View Full Code Here

Examples of org.huihoo.workflow.runtime.WorkflowCall.invoke()

      WorkflowApplication app = pkg.findWorkflowApplication(getApplicationID());
      String implClassName = app.getQualifiedClassName();
      Class implClass = loader.loadClass(implClassName);

      WorkflowCall call = (WorkflowCall) implClass.newInstance();
      call.invoke(workItem, makeParamerers(workflowCase, app));
    }
    catch (Exception ex)
    {
      throw new WorkflowException(ex);
    }
View Full Code Here

Examples of org.hyperic.sigar.jmx.SigarInvokerJMX.invoke()

            String[] query = OK_QUERIES[i];
            SigarInvokerJMX invoker =
                SigarInvokerJMX.getInstance(proxy, query[0]);

            try {
                Object o = invoker.invoke(query[1]);
                traceln(query[0] + ":" + query[1] + "=" + o);
                assertTrue(true);
            } catch (SigarNotImplementedException e) {
                traceln(query[0] + " NotImplemented");
            } catch (SigarPermissionDeniedException e) {
View Full Code Here

Examples of org.impalaframework.web.servlet.invoker.HttpServiceInvoker.invoke()

            }
        }
       
        if (invoker != null) {
            HttpServletRequest wrappedRequest = wrappedRequest(request, context, moduleMapping);
            invoker.invoke(wrappedRequest, response, null);
        }
    }
   
}
View Full Code Here

Examples of org.impalaframework.web.servlet.invoker.ReadWriteLockingInvoker.invoke()

                    throws ServletException, IOException {
               
            }
        };
        ReadWriteLockingInvoker invoker = new ReadWriteLockingInvoker(servlet, EasyMock.createMock(FrameworkLockHolder.class));
        invoker.invoke(EasyMock.createMock(HttpServletRequest.class), EasyMock.createMock(HttpServletResponse.class), null);
    }
}
View Full Code Here

Examples of org.impalaframework.web.servlet.invoker.ThreadContextClassLoaderHttpServiceInvoker.invoke()

                contextClassLoader = Thread.currentThread().getContextClassLoader();
            }
        };
        ThreadContextClassLoaderHttpServiceInvoker invoker = new ThreadContextClassLoaderHttpServiceInvoker(servlet, true, classLoader);
       
        invoker.invoke(EasyMock.createMock(HttpServletRequest.class), EasyMock.createMock(HttpServletResponse.class), null);
       
        //check that the context class loader was correctly set in
        assertSame(contextClassLoader, classLoader);
       
        //assert that the current thread now has the original class loader
View Full Code Here

Examples of org.infinispan.interceptors.InterceptorChain.invoke()

   public static void replicateCommand(Cache cache, VisitableCommand command) throws Throwable {
      ComponentRegistry cr = extractComponentRegistry(cache);
      InterceptorChain ic = cr.getComponent(InterceptorChain.class);
      InvocationContextContainer icc = cr.getComponent(InvocationContextContainer.class);
      InvocationContext ctxt = icc.createInvocationContext(true, -1);
      ic.invoke(ctxt, command);
   }

   public static void blockUntilViewsReceived(int timeout, Collection caches) {
      Object first = caches.iterator().next();
      if (first instanceof Cache) {
View Full Code Here

Examples of org.intellij.grammar.intention.BnfFlipChoiceIntention.invoke()

  private void doTest(/*@Language("BNF")*/ String text, /*@Language("BNF")*/ String expected) throws IOException {
    myFixture.configureByText("a.bnf", text);
    IntentionAction action = new BnfFlipChoiceIntention();
    assertTrue("intention not available", action.isAvailable(getProject(), myFixture.getEditor(), myFixture.getFile()));
    action.invoke(getProject(), myFixture.getEditor(), myFixture.getFile());
    assertSameLines(expected, myFixture.getFile().getText());
  }
}
View Full Code Here

Examples of org.jabsorb.client.Client.invoke()

        Session session = TransportRegistry.i().createSession(uri);
        Client client = new Client(session);
        Object proxy = client.openProxy("", method.getDeclaringClass());

        try {
            Object result = client.invoke(proxy, method, (Object[])msg.getBody());
            msg.setBody(result);
        } catch (Exception e) {
            msg.setFaultBody(e);
        } finally {
            client.closeProxy(proxy);
View Full Code Here

Examples of org.jbehave.core.mock.Expectation.invoke()

            if (args == null) args = new Object[0];
           
            for (Iterator i = expectations.iterator(); i.hasNext();) {
                Expectation expectation = (Expectation) i.next();
                if (expectation.matches(method.getName(), args)) {
                    return expectation.invoke(proxy, method, args);
                }
            }
           
            // if we get here we didn't match on any expectations          
            verifyNoExpectationsMatchMethodName(method, args);
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.