[forge-users] Problem creating test for a new addon I'm

forge-users at lists.jboss.org forge-users at lists.jboss.org
Mon Mar 2 04:26:49 EST 2015


	developing
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Goerge,

I kept it and it still doesn't seem to work. Following is the exception I g=
ot when I executed maven install command on my tests sub-project.

testSomething (org.codehaus.griffon.forge.FirstTest)=C2=A0 Time elapsed: 0.=
058 sec=C2=A0 <<< ERROR!
java.lang.IllegalStateException: Test runner could not locate test class [o=
rg.codehaus.griffon.forge.FirstTest] in any deployed Addon.
=C2=A0=C2=A0=C2=A0 at org.jboss.forge.arquillian.ForgeTestMethodExecutor.in=
voke(ForgeTestMethodExecutor.java:234)
=C2=A0=C2=A0=C2=A0 at org.jboss.arquillian.container.test.impl.execution.Re=
moteTestExecuter.execute(RemoteTestExecuter.java:109)

Following is my getDeployment method now.=20

=C2=A0=C2=A0=C2=A0 @Deployment
=C2=A0=C2=A0=C2=A0 @Dependencies({
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 @AddonDe=
pendency(name =3D "org.codehaus.griffon.forge:griffon-forge-addon"),
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 @AddonDe=
pendency(name=3D"org.jboss.forge.furnace.container:cdi")
=C2=A0=C2=A0=C2=A0 })
=C2=A0=C2=A0=C2=A0 public static ForgeArchive getDeployment() {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ForgeArchive archive =3D ShrinkW=
rap.create(ForgeArchive.class)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 .addBeansXML()
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 .addAsAddonDependencies(
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 AddonDependencyEntry.create("org.codeh=
aus.griffon.forge:griffon-forge-addon"),
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 AddonDependencyEntry.create("org.jboss=
.forge.furnace.container:cdi") );
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return archive;
=C2=A0=C2=A0=C2=A0 }

Thanks
Buddha

Posted by forums
Original post: https://developer.jboss.org/message/920265#920265


More information about the forge-users mailing list