Examples of Rollback


Examples of com.heroku.api.request.releases.Rollback

     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @param releaseName Release name. See {@link #listReleases} for a list of the app's releases.
     * @return
     */
    public String rollback(String appName, String releaseName) {
        return connection.execute(new Rollback(appName, releaseName), apiKey);
    }
View Full Code Here

Examples of com.heroku.api.request.releases.Rollback

    @Test(dataProvider = "newApp", retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testRollback(App app) {
        addConfig(app, "releaseTest", "releaseTest");
        List<Release> releases = connection.execute(new ListReleases(app.getName()), apiKey);
        Release lastRelease = releases.get(releases.size() - 1);
        String rollback = connection.execute(new Rollback(app.getName(), lastRelease.getName()), apiKey);
        assertEquals(rollback, lastRelease.getName());
    }
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.Rollback

      return "remove header " + Strings.getOrElse(node.getHeaderName());
    } else if (this instanceof RemoveProperty) {
      RemoveProperty node = (RemoveProperty) this;
      return "remove property " + Strings.getOrElse(node.getPropertyName());
    } else if (this instanceof Rollback) {
      Rollback node = (Rollback) this;
      return "rollback " + Strings.getOrElse(node.getMessage());
    } else if (this instanceof SetExchangePattern) {
      SetExchangePattern node = (SetExchangePattern) this;
      ExchangePattern pattern = node.getPattern();
      if (pattern == null) {
        return "setExchangePattern";
      } else {
        return "set " + pattern;
      }
    } else if (this instanceof Sort) {
      Sort node = (Sort) this;
      return "sort " + Expressions.getExpressionOrElse(node.getExpression());
    } else if (this instanceof When) {
      When node = (When) this;
      return "when " + Expressions.getExpressionOrElse(node.getExpression());
    } else if (this instanceof Unmarshal) {
      return "unmarshal";
    } else if (this instanceof Try) {
      return "try";
    } else if (this instanceof LoadBalance) {
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.Rollback

        imageProvider.addIconsForClass(new RecipientList());
        imageProvider.addIconsForClass(new RemoveHeader());
        imageProvider.addIconsForClass(new RemoveHeaders());
        imageProvider.addIconsForClass(new RemoveProperty());
        imageProvider.addIconsForClass(new Resequence());
        imageProvider.addIconsForClass(new Rollback());
        imageProvider.addIconsForClass(new Route());
        imageProvider.addIconsForClass(new RoutingSlip());
        imageProvider.addIconsForClass(new Sampling());
        imageProvider.addIconsForClass(new SetBody());
        imageProvider.addIconsForClass(new SetExchangePattern());
View Full Code Here

Examples of org.springframework.test.annotation.Rollback

   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" + rollback
            + "] for test context [" + testContext + "]");
      }
      rollback = rollbackOverride;
View Full Code Here

Examples of org.springframework.test.annotation.Rollback

   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" +
            rollback + "] for test context [" + testContext + "]");
      }
      rollback = rollbackOverride;
View Full Code Here

Examples of org.springframework.test.annotation.Rollback

   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" + rollback
            + "] for test context [" + testContext + "]");
      }
      rollback = rollbackOverride;
View Full Code Here

Examples of org.springframework.test.annotation.Rollback

     * @return the <entityManager>rollback</entityManager> flag for the supplied test context
     * @throws Exception if an error occurs while determining the rollback flag
     */
    protected final boolean isRollback(TestContext testContext) throws Exception {
        boolean rollback = isDefaultRollback(testContext);
        Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
        if (rollbackAnnotation != null) {
            boolean rollbackOverride = rollbackAnnotation.value();
            if (logger.isDebugEnabled()) {
                logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" + rollback
                        + "] for test context [" + testContext + "]");
            }
            rollback = rollbackOverride;
View Full Code Here

Examples of org.springframework.test.annotation.Rollback

   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = findAnnotation(testContext.getTestMethod(), Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug(String.format(
          "Method-level @Rollback(%s) overrides default rollback [%s] for test context %s.",
          rollbackOverride, rollback, testContext));
      }
View Full Code Here

Examples of org.springframework.test.annotation.Rollback

   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" +
            rollback + "] for test context [" + testContext + "]");
      }
      rollback = rollbackOverride;
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.