For plain CDI & EJB we should model things after openejb3/examples/decorators/ and use the standard EJB 3.1 EJBContainer API.
For servlet stuff it would definitely be cool to get some Arquillian based examples going. We could use a ton of servlet tests for TomEE in general. -David On Jun 25, 2011, at 3:40 PM, stratwine wrote: > Hi Jon, > > I was just thinking of starting with writing CDI examples and was wondering > how write tests. Got reminded of this adaptor. Been having fun, playing > around with this.. :) > > These are a few things that I observed, > > The example test is now failing with http://tinypaste.com/af837d > http://tinypaste.com/af837d in the snapshot version of Arquillian. On > changing it to 1.0.0.Alpha5 version it works fine. > > Had to include the jboss-repo to the pom to get the Arquillian artifacts.. > Looks like they haven't got it published in maven central yet. > > <repository> > <id>jboss-public-repository-group</id> > <name>JBoss Public Maven Repository Group</name> > > <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url> > <layout>default</layout> > <releases> > <enabled>true</enabled> > <updatePolicy>never</updatePolicy> > </releases> > <snapshots> > <enabled>true</enabled> > <updatePolicy>never</updatePolicy> > </snapshots> > </repository> > > > And one doubt.. How would we run Arquillian tests using this adaptor.. ? By > adding this as a dependency in whichever project we write tests ? > > I tried it this way.. and got a error on annotating the class with > @RunWith(Arquillian.class) with Arquillian.class not in classpath. > > Commented out the test scope to have the tests running > > <dependency> > <groupId>org.jboss.arquillian</groupId> > <artifactId>arquillian-junit</artifactId> > <version>${version.arquillian}</version> > > </dependency> > > Will play around more with the adaptor.. > > -Vishwa > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Arquillian-adaptor-for-TomEE-tp3541150p3625145.html > Sent from the OpenEJB Dev mailing list archive at Nabble.com.
