Skip to content

Commit

Permalink
Fixed test case missing beans.xml and added a little strictness
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Jul 2, 2013
1 parent a4046f1 commit 1eee77b
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package org.jboss.forge.furnace.versions;

import javax.inject.Inject;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.forge.arquillian.archive.ForgeArchive;
import org.jboss.forge.furnace.addons.AddonRegistry;
import org.jboss.forge.furnace.repositories.AddonDependencyEntry;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand All @@ -18,6 +22,7 @@ public class AddonDependencyVersionRangeTest
public static ForgeArchive getDeployment()
{
ForgeArchive archive = ShrinkWrap.create(ForgeArchive.class)
.addBeansXML()
.addAsAddonDependencies(
AddonDependencyEntry.create("A", "[1,2]", true),
AddonDependencyEntry.create("B", "1", true),
Expand Down Expand Up @@ -81,8 +86,13 @@ public static ForgeArchive getDeploymentC2()
return archive;
}

@Inject
private AddonRegistry registry;

@Test
public void testBuildGraphs() throws Exception
{
Assert.assertEquals("ROOT", registry.getName());
Assert.assertEquals(4, registry.getAddons().size());
}
}

0 comments on commit 1eee77b

Please sign in to comment.