Examples of Result


Examples of com.google.zxing.Result

    }
   
    private void checkFormat(File file, BarcodeFormat format) throws IOException {
        Reader reader = new MultiFormatReader();
        BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(new BufferedImageLuminanceSource(ImageIO.read(file))));
        Result result;
        try {
            result = reader.decode(bitmap);
        } catch (ReaderException ex) {
            throw new IOException(ex);
        }
       
        assertEquals(format, result.getBarcodeFormat());
    }
View Full Code Here

Examples of com.googlecode.jmxtrans.model.Result

  @Test
  public void writeSingleResult() throws Exception {
    // a lot of setup for not much of a test ...
    Server server = Server.builder().setHost("host").setPort("123").build();
    Query query = Query.builder().build();
    Result result = new Result("attributeName", "className", "classNameAlias", "typeName", ImmutableMap.of("key", (Object)1));

    GenericKeyedObjectPool<InetSocketAddress, Socket> pool = mock(GenericKeyedObjectPool.class);
    Socket socket = mock(Socket.class);
    when(pool.borrowObject(any(InetSocketAddress.class))).thenReturn(socket);
    ByteArrayOutputStream out = new ByteArrayOutputStream();
View Full Code Here

Examples of com.gwtplatform.dispatch.rpc.shared.Result

    public BatchResult execute(BatchAction action, ExecutionContext context)
            throws ActionException {
        OnException onException = action.getOnException();
        List<Result> results = new java.util.ArrayList<Result>();
        for (Action<?> a : action.getActions()) {
            Result result = null;
            try {
                result = context.execute(a);
            } catch (Exception e) {
                if (onException == OnException.ROLLBACK) {
                    if (e instanceof ActionException) {
View Full Code Here

Examples of com.gwtplatform.dispatch.shared.Result

    public BatchResult execute(BatchAction action, ExecutionContext context)
            throws ActionException {
        OnException onException = action.getOnException();
        List<Result> results = new java.util.ArrayList<Result>();
        for (Action<?> a : action.getActions()) {
            Result result = null;
            try {
                result = context.execute(a);
            } catch (Exception e) {
                if (onException == OnException.ROLLBACK) {
                    if (e instanceof ActionException) {
View Full Code Here

Examples of com.ibm.icu.util.BytesTrie.Result

                --length;
            }
            int node=chars_.charAt(pos++);
            for(;;) {
                if(node<kMinLinearMatch) {
                    Result result=branchNext(pos, node, inUnit);
                    if(result==Result.NO_MATCH) {
                        return Result.NO_MATCH;
                    }
                    // Fetch the next input unit, if there is one.
                    if(sIndex==sLimit) {
View Full Code Here

Examples of com.intellij.codeInsight.template.Result

    }

    public static String readFirstParamValue(ExpressionContext context, Expression[] params, String defaultValue) {
        String value = null;
        if (params.length > 0) {
            Result result = params[0].calculateResult(context);
            if (result != null) {
                value = result.toString();
            }
        }

        return value == null ? defaultValue : value;
    }
View Full Code Here

Examples of com.intellij.struts2.dom.struts.action.Result

          return builder.getText();
        }

        if (o instanceof Result) {
          final Result result = (Result) o;
          final PathReference pathReference = result.getValue();
          final String displayPath = pathReference != null ? pathReference.getPath() : "???";
          final ResultType resultType = result.getEffectiveResultType();
          final String resultTypeValue = resultType != null ? resultType.getName().getStringValue() : "???";

          final DocumentationBuilder builder = new DocumentationBuilder();
          builder.addLine("Path", displayPath)
                 .addLine("Type", resultTypeValue);
View Full Code Here

Examples of com.jada.xml.psigate.Result

   
    String url = SERVICE_URL_SANDBOX;
    if (isProduction()) {
      url = SERVICE_URL_PRODUCTION;
    }
      Result result = null;
    try {
      result = callWebService(url, order);
    }
    catch (Exception e) {
      logger.error(e);;
      throw new PaymentException(e.getMessage());
    }
    String approved = result.getApproved();
    if (!approved.equals(RESULT_APPROVED)) {
      paymentMessage = result.getErrMsg();
      throw new AuthorizationException(approved + " - " + result.getErrMsg());
    }
    String transactionId = result.getReturnCode();
    String ids[] = transactionId.split(":");
    authCode = ids[1];
    paymentReference1 = transactionId;
    paymentReference2 = result.getTransRefNumber();
    paymentReference3 = result.getOrderID();
    paymentType = result.getPaymentType();
  }
View Full Code Here

Examples of com.mks.api.response.Result

                while ( wit.hasNext() )
                {
                    WorkItem wi = wit.next();
                    if ( wi.getModelType().equals( SIModelTypeName.MEMBER ) )
                    {
                        Result message = wi.getResult();
                        getLogger().debug( wi.getDisplayId() + " " + ( null != message ? message.getMessage() : "" ) );
                    }
                }
                int exitCode = res.getExitCode();
                boolean success = ( exitCode == 0 ? true : false );
                result = new CheckOutScmResult( res.getCommandString(), "", "Exit Code: " + exitCode, success );
View Full Code Here

Examples of com.netflix.exhibitor.core.entities.Result

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public Response rollbackRolling() throws Exception
    {
        context.getExhibitor().getConfigManager().cancelRollingConfig(ConfigManager.CancelMode.ROLLBACK);
        return Response.ok(new Result("OK", true)).build();
    }
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.