Examples of result()


Examples of org.omg.CORBA.Request.result()

      for (int i = 0; i < reqs.length; i++)
        {
          try
            {
              Request a = orb.get_next_response();
              served.clear(a.result().value().extract_long());
            }
          catch (Exception ex)
            {
              ex.printStackTrace();
            }
View Full Code Here

Examples of org.omg.CORBA.Request.result()

        }

      assertTrue("Request.send_defferred:Must be ready now",
                 rq.poll_response());
      assertEquals("Request.send_defferred:Result must be ready",
                 rq.result().value().extract_long(), 200);

      orb.shutdown(true);
  }

}
View Full Code Here

Examples of org.omg.CORBA.Request.result()

    // For the last parameter, the value is not set.
    r.set_return_type(orb.get_primitive_tc(TCKind.tk_long));

    r.invoke();

    assertEquals("Returned value", r.result().value().extract_long(), 452572);

    para = r.arguments();

    try
      {
View Full Code Here

Examples of org.omg.CORBA.Request.result()

    rq.set_return_type(orb.get_primitive_tc(TCKind.tk_wstring));

    rq.invoke();

    assertEquals("Returned value", rq.result().value().extract_wstring(),
                 "return 'narrow string' and 'wide string'"
                );
  }

  protected void setUp()
View Full Code Here

Examples of org.omg.CORBA.Request.result()

                                                   )
                     );

    r.invoke();

    byte[] reflection = OctetSeqHelper.extract(r.result().value());

    assertEquals("length", expected.length, reflection.length);

    for (int i = 0; i < reflection.length; i++)
      {
View Full Code Here

Examples of org.openjdk.jmh.runner.options.ChainedOptionsBuilder.result()

                file.getParentFile().mkdirs();
                file.createNewFile();
            }

            runnerOptions.resultFormat(ResultFormatType.JSON);
            runnerOptions.result(filePath);
        }

        new Runner(runnerOptions.build()).run();
    }
View Full Code Here

Examples of org.ow2.easybeans.mavenplugin.examples.calculator.StatefulCalcRemote.result()

            HelloInterface hr = getHelloEJB(initialContext);

            System.out.println("Calling Calculator methods : x = " + INITIAL_CALC_VALUE + " + " + VALUE_TEST_ADD);
            calc.initial(INITIAL_CALC_VALUE);
            calc.add(VALUE_TEST_ADD);
            Integer x = calc.result();

            System.out.println("Calling HelloWorld method : sayHello(x)");
            String result = hr.sayHello(x.toString());

            System.out.println("Result : " + result);
View Full Code Here

Examples of play.api.mvc.AsyncResult.result()

        if (result.getWrappedResult() instanceof PlainResult) {
            int status = ((PlainResult) result.getWrappedResult()).header().status();
            log(request, UserApp.currentUser().loginId, status, startTimeMillis);
        } else if (result.getWrappedResult() instanceof AsyncResult) {
            AsyncResult asyncResult = (AsyncResult) result.getWrappedResult();
            Promise<play.api.mvc.Result> promise = Akka.asPromise(asyncResult.result());
            promise.onRedeem(new Callback<play.api.mvc.Result>() {
                @Override
                public void invoke(final play.api.mvc.Result result) throws Throwable {
                    log(request, wrapResult(result), startTimeMillis);
                }
View Full Code Here

Examples of xerial.larray.LIntArrayBuilder.result()

        // Build LArray
        LIntArrayBuilder b = new LIntArrayBuilder();
        for(int i=0; i<10; i += 3)
            b.append(i);
        LIntArray lb = b.result(); // LArray(0, 3, 6, 9)
        System.out.println(lb.mkString(", "));

        // Save to a file
        File file = l.saveTo(new File("target/larray.tmp"));
        file.deleteOnExit();
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.