Examples of Result


Examples of org.netbeans.api.visual.anchor.Anchor.Result

        super(widget);
        this.alignment = alignment;
    }

    public Result compute(Entry entry) {
        return new Result(getRelatedSceneLocation(), Anchor.DIRECTION_ANY);
    }
View Full Code Here

Examples of org.objectweb.hello_world_soap_http_secure.types.Result

            endpointInterface = "org.objectweb.hello_world_soap_http_secure.Greeter",
            targetNamespace = "http://objectweb.org/hello_world_soap_http_secure")
public class GreeterImpl implements Greeter {

    public Result greetMeTwoTier(String me, int testIndex) {
        Result ret = new Result();
        if (Matrix.TWO_TIER_TESTS[testIndex].targetData.targetExpectSuccess) {
            ret.setDidPass(Matrix.SUCCEED);
            ret.setReturnString("Hello " + me);
            ret.setFailureReason("");
        } else {
            ret.setDidPass(Matrix.FAIL);
            ret.setReturnString("");
            ret.setFailureReason("Shouldn't have been able to contact GreeterImpl.greetme, testIndex = "
                                 + testIndex)
        }
        return ret;
    }
View Full Code Here

Examples of org.openjdk.jmh.logic.results.Result

                        .include(benchmark.getUsername())
                        .jvmArgs("-Dtestdata=testdata/" + dataset.getFileName())
                        .build();

                RunResult result = new Runner(opt).runSingle();
                Result uncompressedBytes = result.getSecondaryResults().get("getUncompressedBytes");

                Statistics stats = uncompressedBytes.getStatistics();
                System.out.printf("  %-14s %10s ± %10s (%5.2f%%) (N = %d, \u03B1 = 99.9%%)\n",
                        getBenchmarkName(benchmark),
                        Util.toHumanReadableSpeed((long) stats.getMean()),
                        Util.toHumanReadableSpeed((long) stats.getMeanErrorAt(0.999)),
                        stats.getMeanErrorAt(0.999) * 100 / stats.getMean(),
View Full Code Here

Examples of org.pentaho.aggdes.algorithm.Result

      } finally {
        pw.flush();
      }
      dialog.show();
     
      Result result = algorithmRunner.getResult();
      logger.debug("result=" + result);
 
      if (result == null || result.getAggregates() == null || result.getAggregates().size() == 0) {
        XulMessageBox box = (XulMessageBox) document.createElement("messagebox");
        box.setTitle(Messages.getString("AlgorithmController.NoResultsTitle"));
        box.setMessage(Messages.getString("AlgorithmController.NoResultsMessage"));
        box.open();
        return;
      }
     
      List<UIAggregate> algorithmAggs = new ArrayList<UIAggregate>();
     
      for (Aggregate agg : result.getAggregates()) {
          UIAggregateImpl cagg = new UIAggregateImpl();
          cagg.setName(agg.getCandidateTableName());
          cagg.setAlgoAgg(true);
          cagg.setDescription(agg.getDescription());
          cagg.setEstimateRowCount(agg.estimateRowCount());
View Full Code Here

Examples of org.pentaho.di.core.Result

        fail("all tests job seems to be hanging for "+(MAX_RUNTIME/1000)+" seconds");
      }
    }

    // make sure there's no errors when the job finishes
    Result result = job.getResult();
    assertEquals(0, result.getNrErrors());
   
  }
View Full Code Here

Examples of org.phoenixdb.client.Result

    public java.sql.ResultSet executeInternal(String sql) throws SQLException
    {
        try
        {
            Result res = phoenixdbConnection.prepare(sql);
            if (res.isSelective())
            {
                return new ResultSet(phoenixdbConnection.execute());
            }
            else
            {
View Full Code Here

Examples of org.picketlink.identity.federation.api.soap.SOAPSAMLXACML.Result

        if (sendRequest) {
            // Create an XACML Request
            RequestType xacmlRequest = getXACMLRequest();
            SOAPSAMLXACML soapSAMLXACML = new SOAPSAMLXACML();

            Result result = soapSAMLXACML.send(endpoint, issuer, xacmlRequest);
            assertTrue("No fault", result.isFault() == false);
            assertTrue("Decision available", result.isResponseAvailable());
            assertTrue("Deny", result.isDeny());
        }
    }
View Full Code Here

Examples of org.powermock.core.spi.testresult.Result

  public int getIgnoreCount() {
    return ignoreCount;
  }

  public Result getResult() {
    Result result = Result.SUCCESSFUL;
    if (testCount == 0) {
      result = Result.IGNORED;
    } else if (failureCount != 0) {
      result = Result.FAILED;
    }
View Full Code Here

Examples of org.restlet.resource.Result

                            // Asynchronous mode where a callback
                            // object is to be called.
                            isSynchronous = false;

                            // Get the kind of result expected.
                            final Result rCallback = (Result) o;
                            Type[] genericParameterTypes = javaMethod
                                    .getGenericParameterTypes();
                            Type genericParameterType = genericParameterTypes[i];
                            ParameterizedType parameterizedType = (genericParameterType instanceof java.lang.reflect.ParameterizedType) ? (java.lang.reflect.ParameterizedType) genericParameterType
                                    : null;
                            final Class<?> actualType = (parameterizedType
                                    .getActualTypeArguments()[0] instanceof Class<?>) ? (Class<?>) parameterizedType
                                    .getActualTypeArguments()[0] : null;

                            // Define the callback
                            Uniform callback = new Uniform() {
                                @SuppressWarnings("unchecked")
                                public void handle(Request request,
                                        Response response) {
                                    if (response.getStatus().isError()) {
                                        rCallback
                                                .onFailure(new ResourceException(
                                                        response.getStatus()));
                                    } else {
                                        if (actualType != null) {
                                            rCallback
                                                    .onSuccess(getClientResource()
                                                            .toObject(
                                                                    response.getEntity(),
                                                                    actualType
                                                                            .getClass()));
                                        } else {
                                            rCallback.onSuccess(null);
                                        }
                                    }
                                }
                            };
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.Result

               op = new ReadAttribute(getAddress(), request.getProp());
            } else {
               op = new ReadAttribute(getAddress(), reqName); // TODO batching
            }

            Result res = getASConnection().execute(op);
            if (!res.isSuccess()) {
               log.warn("Getting metric [" + req.getName() + "] at [ " + getAddress() + "] failed: " + res.getFailureDescription());
               continue;
            }

            Object val = res.getResult();
            if (val == null) // One of the AS7 ways of telling "This is not implemented" See also AS7-1454
               continue;

            if (req.getDataType() == DataType.MEASUREMENT) {
               if (!val.equals("no metrics available")) { // AS 7 returns this
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.