Skip to content

Commit

Permalink
Improved scaffold test
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Mar 30, 2015
1 parent 63ad307 commit 22c9324
Showing 1 changed file with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
import org.jboss.forge.addon.ui.result.CompositeResult;
import org.jboss.forge.addon.ui.result.Failed;
import org.jboss.forge.addon.ui.result.Result;
import org.jboss.forge.arquillian.AddonDeployment;
import org.jboss.forge.arquillian.AddonDeployments;
import org.jboss.forge.arquillian.AddonDependencies;
import org.jboss.forge.arquillian.AddonDependency;
import org.jboss.forge.arquillian.archive.AddonArchive;
import org.jboss.forge.furnace.repositories.AddonDependencyEntry;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.junit.Assert;
import org.junit.Test;
Expand All @@ -45,23 +44,18 @@
public class FacesScaffoldTest
{
@Deployment
@AddonDeployments({
@AddonDeployment(name = "org.jboss.forge.addon:scaffold-faces"),
@AddonDeployment(name = "org.jboss.forge.addon:maven"),
@AddonDeployment(name = "org.jboss.forge.addon:shell-test-harness")
@AddonDependencies({
@AddonDependency(name = "org.jboss.forge.addon:scaffold-faces"),
@AddonDependency(name = "org.jboss.forge.addon:maven"),
@AddonDependency(name = "org.jboss.forge.addon:shell-test-harness"),
@AddonDependency(name = "org.jboss.forge.furnace.container:cdi")
})
public static AddonArchive getDeployment()
{
AddonArchive archive = ShrinkWrap
.create(AddonArchive.class)
.addClass(ProjectHelper.class)
.addBeansXML()
.addAsAddonDependencies(
AddonDependencyEntry.create("org.jboss.forge.addon:scaffold-faces"),
AddonDependencyEntry.create("org.jboss.forge.addon:maven"),
AddonDependencyEntry.create("org.jboss.forge.furnace.container:cdi"),
AddonDependencyEntry.create("org.jboss.forge.addon:shell-test-harness")
);
.addBeansXML();

return archive;
}
Expand Down

0 comments on commit 22c9324

Please sign in to comment.