Examples of revert()


Examples of org.jruby.ast.visitor.rewriter.utils.BooleanStateStack.revert()

  }

  public void testBooleanStateStack() {
    BooleanStateStack s = new BooleanStateStack(true, true);
    assertTrue(s.isTrue());
    s.revert();
    assertTrue(s.isTrue());
   
    s = new BooleanStateStack(false, false);
    assertFalse(s.isTrue());
    s.revert();
View Full Code Here

Examples of org.jruby.ast.visitor.rewriter.utils.BooleanStateStack.revert()

    s.revert();
    assertTrue(s.isTrue());
   
    s = new BooleanStateStack(false, false);
    assertFalse(s.isTrue());
    s.revert();
    assertFalse(s.isTrue());
  }

  public void testSet() {
    BooleanStateStack s = new BooleanStateStack(true, true);
View Full Code Here

Examples of org.jruby.ast.visitor.rewriter.utils.BooleanStateStack.revert()

  public void testSet() {
    BooleanStateStack s = new BooleanStateStack(true, true);
    assertTrue(s.isTrue());
    s.set(false);
    assertFalse(s.isTrue());
    s.revert();
    assertTrue(s.isTrue());
  }
}
View Full Code Here

Examples of org.openxml4j.opc.Package.revert()

      DemoCore.getLogger().info(
          "Creation date: " + props.getCreatedProperty().getValue());
      DemoCore.getLogger().info(
          "Status: " + props.getContentStatusProperty().getValue());

      p.revert();
    } catch (OpenXML4JException e) {
      DemoCore.getLogger().debug(e.getMessage());
    }
  }
}
View Full Code Here

Examples of org.rhq.core.util.file.FileReverter.revert()

            // If any failures occur during upgrade, we know we need to reset rhq-server.properties
            final FileReverter serverPropFileReverter = new FileReverter(getServerPropertiesFile());
            addUndoTask(new ControlCommand.UndoTask("Reverting server properties file") {
                public void performUndoWork() throws Exception {
                    try {
                        serverPropFileReverter.revert();
                    } catch (Exception e) {
                        throw new Exception("Cannot reset rhq-server.properties - revert settings manually", e);
                    }
                }
            });
View Full Code Here

Examples of org.rhq.core.util.file.FileReverter.revert()

                    // If any failures occur during upgrade reset the env file to the default
                    final FileReverter serverEnvFileReverter = new FileReverter(newServerEnvFile);
                    addUndoTask(new ControlCommand.UndoTask("Reverting server environment file") {
                        public void performUndoWork() throws Exception {
                            try {
                                serverEnvFileReverter.revert();
                            } catch (Exception e) {
                                throw new Exception("Cannot reset rhq-server-env.sh|bat - revert manually", e);
                            }
                        }
                    });
View Full Code Here

Examples of org.rhq.core.util.file.FileReverter.revert()

            addUndoTask(new ControlCommand.UndoTask(
                "Removing server-installed marker file and management user and reverting to original standalone-full.xml") {
                public void performUndoWork() throws Exception {
                    getServerInstalledMarkerFile(getBaseDir()).delete();
                    mgmtUserPropertiesReverter.revert();
                    standaloneXmlFileReverter.revert();
                }
            });

            org.apache.commons.exec.CommandLine commandLine = getCommandLine("rhq-installer");
            if (ServerInstallerAction.UPGRADE == serverInstallerAction) {
View Full Code Here

Examples of org.rhq.core.util.file.FileReverter.revert()

            // If any failures occur, we know we need to reset rhq-server.properties.
            final FileReverter serverPropFileReverter = new FileReverter(getServerPropertiesFile());
            addUndoTask(new ControlCommand.UndoTask("Reverting server properties file") {
                public void performUndoWork() throws Exception {
                    try {
                        serverPropFileReverter.revert();
                    } catch (Exception e) {
                        throw new Exception("Cannot reset rhq-server.properties - revert settings manually", e);
                    }
                }
            });
View Full Code Here

Examples of org.springframework.binding.form.FormModel.revert()

        ValueModel valueModel = formModel.getValueModel("property");
        valueModel.setValue("dirty");

        // sleep for a while so the gui can update itself
        Thread.sleep(500);
        formModel.revert();

        // find a reference to the overlay component
        JLayeredPane layeredPane = frame.getRootPane().getLayeredPane();
        assertEquals("sanity check: assume the layered pane only has one component, and that it is a panel and the overlay",
                     2, layeredPane.getComponentCount());
View Full Code Here

Examples of org.springframework.binding.form.support.DefaultFormModel.revert()

        ValueModel valueModel = formModel.getValueModel("property");
        valueModel.setValue("dirty");

        // sleep for a while so the gui can update itself
        Thread.sleep(500);
        formModel.revert();

        // find a reference to the overlay component
        JLayeredPane layeredPane = frame.getRootPane().getLayeredPane();
        assertEquals("sanity check: assume the layered pane only has one component, and that it is a panel and the overlay",
                     2, layeredPane.getComponentCount());
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.