Examples of method()


Examples of com.jcabi.http.mock.MkQuery.method()

            final JsonObject json = Json.createObjectBuilder()
                .add("body", "test comment").build();
            comment.patch(json);
            final MkQuery query = container.take();
            MatcherAssert.assertThat(
                query.method(), Matchers.equalTo(Request.PATCH)
            );
            MatcherAssert.assertThat(
                query.body(),
                Matchers.containsString("{\"body\":\"test comment\"}")
            );
View Full Code Here

Examples of com.laamella.javamodel.ClassBody.method()

        createGetter(modelClass, attribute);
        createField(modelClass, attribute);
        constructorArgs.add(makeConstructorArg(attribute));
      }

      final Block constructor = modelClass.method("public %s(%s)", element.fullyQualifiedName, join(", ", constructorArgs));
      for (Element child : element.children) {
        constructor.add("this.%s = %s;", child.valueHandlerMethodName, child.valueHandlerMethodName);
      }
      for (Element attribute : element.attributes) {
        constructor.add("this.%s = %s;", attribute.valueHandlerMethodName, attribute.valueHandlerMethodName);
View Full Code Here

Examples of com.linkedin.restli.docgen.examplegen.ExampleRequestResponseGenerator.method()

    {
      final ExampleRequestResponse capture;
      if (methodSchema instanceof RestMethodSchema)
      {
        RestMethodSchema restMethodSchema = (RestMethodSchema)methodSchema;
        capture = generator.method(ResourceMethod.valueOf(restMethodSchema.getMethod().toUpperCase()));
      }
      else if (methodSchema instanceof FinderSchema)
      {
        FinderSchema finderMethodSchema = (FinderSchema)methodSchema;
        capture = generator.finder(finderMethodSchema.getName());
View Full Code Here

Examples of com.mycila.testing.core.api.Execution.method()

    static void unsetCurrentExecution() {
        if (LOGGER.canDebug()) {
            Execution execution = CURRENT_EXECUTION.get();
            if (execution != null) {
                LOGGER.debug("Removing Execution Context %s#%s for test %s#%s", execution.step(), execution.method().getName(), execution.context().introspector().testClass().getName(), execution.context().introspector().instance().hashCode());
            }
        }
        CURRENT_EXECUTION.remove();
    }
View Full Code Here

Examples of com.mycila.testing.core.api.TestExecution.method()

            public void evaluate() throws Throwable {
                testNotifier.fireBeforeTest(method.getMethod());
                TestExecution testExecution = (TestExecution) Mycila.currentExecution();
                if (!testExecution.mustSkip()) {
                    try {
                        LOGGER.debug("Calling test method %s.%s", testExecution.method().getDeclaringClass().getName(), testExecution.method().getName());
                        MycilaJunitRunner.super.methodInvoker(method, test).evaluate();
                    } catch (Throwable t) {
                        testExecution.setThrowable(t);
                    }
                }
View Full Code Here

Examples of com.niacin.annotation.Optimize.method()

  private Niacin(Class<?> klassInput, Class<?> klassFitness)
  {
    Optimize opt = getOptimization(klassFitness);
    Vector<Variable<?>> variables = getVariables(klassInput);
    Problem problem = new Problem(opt.name(), variables, opt.direction(), opt.trials());
    Metaheuristic metaheuristic = MetaheuristicFactory.create(opt.method(), problem);

    eventBus.register(NiacinEventHandler.initialise(klassInput, klassFitness, problem, metaheuristic));
  }

  public static void start(Object source)
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.method()

    private void addToStringMethod(ClassOutline co,
                                   JClass delegateImpl,
                                   JFieldRef toStringDelegateStyleParam) {
        final JDefinedClass implementation = co.implClass;
        final JMethod toStringMethod = implementation.method(JMod.PUBLIC, String.class, "toString");
        final JInvocation invoke = delegateImpl.staticInvoke("valueOf");
        invoke.arg(JExpr._this());
        invoke.arg(toStringDelegateStyleParam);
        toStringMethod.body()._return(invoke);
       
View Full Code Here

Examples of com.sun.codemodel.internal.JDefinedClass.method()

                impl._implements(Locatable.class);

                impl.method(JMod.PUBLIC, Locator.class, "sourceLocation").body()._return($loc);

                JMethod setter = impl.method(JMod.PUBLIC, Void.TYPE, "setSourceLocation");
                JVar $newLoc = setter.param(Locator.class, "newLocator");
                setter.body().assign($loc, $newLoc);
            }
        }
View Full Code Here

Examples of com.sun.grizzly.tcp.Request.method()

       
        // Translate the HTTP method code to a String.
        byte methodCode = msg.getByte();
        if (methodCode != AjpConstants.SC_M_JK_STORED) {
            String mName=AjpConstants.methodTransArray[(int)methodCode - 1];
            req.method().setString(mName);
        }

        msg.getBytes(req.protocol());
        msg.getBytes(req.requestURI());
View Full Code Here

Examples of com.sun.jdi.Location.method()

    public final static synchronized DroolsStackFrame createCustomFrame(DroolsThread thread,
                                                                        int depth,
                                                                        StackFrame currentFrame) {
        DroolsStackFrame customFrame;
        Location loc = currentFrame.location();
        if ( loc.declaringType().name().equals( "org.drools.core.base.mvel.MVELDebugHandler" ) && loc.method().name().equals( "onBreak" ) ) {
            customFrame = new MVELStackFrame( thread,
                                              currentFrame,
                                              depth );
        } else {
            customFrame = new DroolsStackFrame( thread,
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.