Examples of successful()


Examples of ch.ralscha.extdirectspring.bean.ExtDirectResponseBuilder.successful()

    builder.addResultProperty("name", user.getName());
    builder.addResultProperty("firstName", user.getFirstName());
    builder.addResultProperty("age", user.getAge());
    builder.addResultProperty("email", user.getEmail());

    builder.successful();
    builder.buildAndWrite();
  }

}
View Full Code Here

Examples of com.betfair.cougar.netutil.nio.ClientHandshake.successful()

    private boolean handshake(IoSession session) {
        ClientHandshake clientHandshake = (ClientHandshake) session.getAttribute(ClientHandshake.HANDSHAKE);
        clientHandshake.await(handshakeResponseTimeout);
        session.removeAttribute(ClientHandshake.HANDSHAKE); // not needed anymore
        return clientHandshake.successful();
    }

    // ############################################
    private class ReconnectTask implements Runnable {
View Full Code Here

Examples of com.google.testing.compile.Compilation.Result.successful()

    }

    @Override
    public UnsuccessfulCompilationClause failsToCompile() {
      Result result = Compilation.compile(processors, getSubject());
      if (result.successful()) {
        String message = Joiner.on('\n').join(
            "Compilation was expected to fail, but contained no errors.",
            "",
            reportFilesGenerated(result));
        failureStrategy.fail(message);
View Full Code Here

Examples of com.google.testing.compile.Compilation.Result.successful()

            return false;
          }
        }),
        // just compile _something_
        ImmutableList.of(JavaFileObjects.forSourceLines("Dummy", "final class Dummy {}")));
        checkState(result.successful(), result);
        Throwable t = thrown.get();
        if (t != null) {
          throw t;
        }
      }
View Full Code Here

Examples of org.broadleafcommerce.common.payment.dto.PaymentResponseDTO.successful()

        if (paramMap.containsKey(NullPaymentGatewayConstants.TRANSACTION_AMT)) {
            String amt = paramMap.get(NullPaymentGatewayConstants.TRANSACTION_AMT)[0];
            amount = new Money(amt);
        }

        responseDTO.successful(true)
                .completeCheckoutOnCallback(Boolean.parseBoolean(paramMap.get(NullPaymentGatewayConstants.COMPLETE_CHECKOUT_ON_CALLBACK)[0]))
                .amount(amount)
                .paymentTransactionType(PaymentTransactionType.UNCONFIRMED)
                .orderId(paramMap.get(NullPaymentGatewayConstants.ORDER_ID)[0])
                .responseMap(NullPaymentGatewayConstants.RESULT_MESSAGE,
View Full Code Here

Examples of org.broadleafcommerce.common.payment.dto.PaymentResponseDTO.successful()

        PaymentTransactionType type = PaymentTransactionType.AUTHORIZE_AND_CAPTURE;
        if (!configuration.isPerformAuthorizeAndCapture()) {
            type = PaymentTransactionType.AUTHORIZE;
        }

        responseDTO.successful(approved)
                .amount(amount)
                .paymentTransactionType(type)
                .orderId(paramMap.get(NullPaymentGatewayConstants.ORDER_ID)[0])
                .responseMap(NullPaymentGatewayConstants.GATEWAY_TRANSACTION_ID,
                        paramMap.get(NullPaymentGatewayConstants.GATEWAY_TRANSACTION_ID)[0])
View Full Code Here

Examples of org.springmodules.javaspaces.entry.MethodResultEntry.successful()

    MethodResultEntry result = null;

    result = takeResult(call);
    // If it's an exception, throw it to the caller. The
    // exception will propogate up the call chain.
    if (!result.successful()) {
      throw result.getFailure();
    }
    else {
      return result.getResult();
    }
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.