Examples of canMoveToNextStep()


Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

      try
      {
         WizardCommandController controller = testHarness.createWizardController("Project: New");
         controller.initialize();
         controller.setValueFor("named", "example");
         Assert.assertFalse(controller.canMoveToNextStep());
         controller.setValueFor("type", "From Archetype");
         Assert.assertTrue(controller.canMoveToNextStep());
         controller.next().initialize();
         Assert.assertFalse(controller.canMoveToNextStep());
         Assert.assertFalse(controller.canExecute());
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

         WizardCommandController controller = testHarness.createWizardController("Project: New");
         controller.initialize();
         controller.setValueFor("named", "example");
         Assert.assertFalse(controller.canMoveToNextStep());
         controller.setValueFor("type", "From Archetype");
         Assert.assertTrue(controller.canMoveToNextStep());
         controller.next().initialize();
         Assert.assertFalse(controller.canMoveToNextStep());
         Assert.assertFalse(controller.canExecute());
         controller.setValueFor("archetypeGroupId", "org.jboss.tools.archetypes");
         controller.setValueFor("archetypeArtifactId", "jboss-forge-html5");
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

         controller.setValueFor("named", "example");
         Assert.assertFalse(controller.canMoveToNextStep());
         controller.setValueFor("type", "From Archetype");
         Assert.assertTrue(controller.canMoveToNextStep());
         controller.next().initialize();
         Assert.assertFalse(controller.canMoveToNextStep());
         Assert.assertFalse(controller.canExecute());
         controller.setValueFor("archetypeGroupId", "org.jboss.tools.archetypes");
         controller.setValueFor("archetypeArtifactId", "jboss-forge-html5");
         controller.setValueFor("archetypeVersion", "1.0.0-SNAPSHOT");
         Assert.assertTrue(controller.canExecute());
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

      File tempDir = OperatingSystemUtils.createTempDir();
      try
      {
         WizardCommandController wizard = testHarness.createWizardController(NewProjectWizard.class);
         wizard.initialize();
         Assert.assertFalse(wizard.canMoveToNextStep());
         wizard.setValueFor("named", "test");
         wizard.setValueFor("targetLocation", tempDir);
         wizard.setValueFor("topLevelPackage", "org.example");
         wizard.setValueFor("type", "norequirements");
         Assert.assertEquals("norequirements", InputComponents.getValueFor(wizard.getInputs().get("type")).toString());
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

      File tempDir = OperatingSystemUtils.createTempDir();
      try
      {
         WizardCommandController wizard = testHarness.createWizardController(NewProjectWizard.class);
         wizard.initialize();
         Assert.assertFalse(wizard.canMoveToNextStep());
         wizard.setValueFor("named", "test");
         wizard.setValueFor("targetLocation", tempDir);
         wizard.setValueFor("topLevelPackage", "org.example");
         wizard.setValueFor("type", "nullrequirements");
         Assert.assertEquals("nullrequirements", InputComponents.getValueFor(wizard.getInputs().get("type"))
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

      File tempDir = OperatingSystemUtils.createTempDir();
      try
      {
         WizardCommandController wizard = testHarness.createWizardController(NewProjectWizard.class);
         wizard.initialize();
         Assert.assertFalse(wizard.canMoveToNextStep());
         wizard.setValueFor("named", "test");
         wizard.setValueFor("targetLocation", tempDir);
         wizard.setValueFor("topLevelPackage", "org.example");
         wizard.setValueFor("type", "mock");
         Assert.assertEquals("buildsystem", InputComponents.getValueFor(wizard.getInputs().get("buildSystem"))
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

      File tempDir = OperatingSystemUtils.createTempDir();
      try
      {
         WizardCommandController wizard = testHarness.createWizardController(NewProjectWizard.class);
         wizard.initialize();
         Assert.assertFalse(wizard.canMoveToNextStep());
         wizard.setValueFor("named", "test");
         wizard.setValueFor("targetLocation", tempDir);
         wizard.setValueFor("topLevelPackage", "org.example");
         wizard.setValueFor("type", "unsatisfied");
         Assert.assertNotEquals("unsatisfied", InputComponents.getValueFor(wizard.getInputs().get("type")).toString());
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

      something.mkdirs();
      try
      {
         WizardCommandController wizard = testHarness.createWizardController(NewProjectWizard.class);
         wizard.initialize();
         Assert.assertFalse(wizard.canMoveToNextStep());
         Assert.assertFalse(wizard.getInputs().get("overwrite").isEnabled());
         wizard.setValueFor("named", "test");
         wizard.setValueFor("targetLocation", tempDir);
         wizard.setValueFor("topLevelPackage", "org.example");
         wizard.setValueFor("type", "mock");
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

         wizard.setValueFor("targetLocation", tempDir);
         wizard.setValueFor("topLevelPackage", "org.example");
         wizard.setValueFor("type", "mock");
         Assert.assertFalse(wizard.isValid());
         Assert.assertTrue(wizard.getInputs().get("overwrite").isEnabled());
         Assert.assertFalse(wizard.canMoveToNextStep());
         Assert.assertFalse(wizard.canExecute());
      }
      finally
      {
         something.delete();
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.WizardCommandController.canMoveToNextStep()

      WizardCommandController controller = testHarness.createWizardController(NewEJBCommand.class, project.getRoot());
      controller.initialize();
      controller.setValueFor("named", "TestEJB");
      controller.setValueFor("targetPackage", "org.jboss.forge.test");
      controller.setValueFor("serializable", "true");
      Assert.assertFalse(controller.canMoveToNextStep());
      Assert.assertTrue(controller.isValid());
      Assert.assertTrue(controller.canExecute());
      Result result = controller.execute();
      Assert.assertThat(result, is(not(instanceOf(Failed.class))));
      Assert.assertTrue(project.hasFacet(EJBFacet.class));
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.