Skip to content

Commit

Permalink
Reenabled ignored tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Feb 8, 2014
1 parent b78fd29 commit c1d9c68
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*/
@RunWith(Arquillian.class)
@Ignore("It fails in TeamCity. Investigate")
public class NewProjectShellTest
{
@Deployment
Expand Down Expand Up @@ -72,7 +71,7 @@ public void testWizardCommandExecution() throws Exception
{
File target = OperatingSystemUtils.createTempDir();

Result result = test.execute(("new-project " +
Result result = test.execute(("project-new " +
"--named lincoln " +
"--topLevelPackage org.lincoln " +
"--targetLocation " + target.getAbsolutePath() + " " +
Expand All @@ -93,7 +92,7 @@ public void testTopLevelPackageOptional() throws Exception
{
File target = OperatingSystemUtils.createTempDir();

Result result = test.execute(("new-project " +
Result result = test.execute(("project-new " +
"--named lincoln-three " +
"--targetLocation " + target.getAbsolutePath() + " " +
"--type \"Maven - Resources\" " +
Expand All @@ -116,29 +115,29 @@ public void testTopLevelPackageOptional() throws Exception
@Ignore("Until shell is fixed")
public void testCompletionFlow() throws Exception
{
test.waitForCompletion("new-project ", "new-pr", 5, TimeUnit.SECONDS);
test.waitForCompletion("new-project --", "", 5, TimeUnit.SECONDS);
test.waitForCompletion("project-new ", "project-n", 5, TimeUnit.SECONDS);
test.waitForCompletion("project-new --", "", 5, TimeUnit.SECONDS);

String stdout = test.waitForCompletion(5, TimeUnit.SECONDS);
Assert.assertThat(stdout, containsString("--named"));
Assert.assertThat(stdout, containsString("--topLevelPackage"));
Assert.assertThat(stdout, containsString("--targetLocation"));
Assert.assertThat(stdout, containsString("--overwrite"));
Assert.assertThat(stdout, not(containsString("--overwrite")));
Assert.assertThat(stdout, containsString("--type"));
Assert.assertThat(stdout, containsString("--version"));
Assert.assertThat(stdout, not(containsString("--addons")));

stdout = test.waitForCompletion("new-project --named lincoln --type Maven\\ -\\ ",
stdout = test.waitForCompletion("project-new --named lincoln --type Maven\\ -\\ ",
"named lincoln --type Mave",
5, TimeUnit.SECONDS);

Assert.assertThat(stdout, containsString("Maven - Java"));
Assert.assertThat(stdout, containsString("Maven - Resources"));

stdout = test.waitForCompletion("new-project --named lincoln --type Maven\\ -\\ Java ",
stdout = test.waitForCompletion("project-new --named lincoln --type Maven\\ -\\ Java ",
"J", 5, TimeUnit.SECONDS);

stdout = test.waitForCompletion("new-project --named lincoln --type Maven\\ -\\ Java --",
stdout = test.waitForCompletion("project-new --named lincoln --type Maven\\ -\\ Java --",
"--", 5, TimeUnit.SECONDS);

Assert.assertThat(stdout, containsString("--topLevelPackage"));
Expand Down

0 comments on commit c1d9c68

Please sign in to comment.