Romain- only kind of, since you can have multiple deployments, some
testable, some not testable.  Though I don't think that's the case here.

RunAsClient and testable=false/true have no direct correlation, other than
what Romain side in that if testable=false for all archives it's assumed
that the test case runs on the client.  Testable controls the Arquillian
archive enrichment process.

Luca, you mention execute the successive methods.. and testable=false.
 Testable is an attribute on @Deployment, which controls whether that
deployment can be enriched by Arquillian.  Deployments happen once per
class, not once per method.  Can you explain a little better what you're
trying to do?  Are you using the persistence extension to seed data and
trying to work with that data in your test methods, across multiple test
methods?


On Sun, Feb 17, 2013 at 5:56 PM, Romain Manni-Bucau
<[email protected]>wrote:

> testable != RunAsClient
>
> testable = false implies RunAsClient since it prevents the enrichement of
> the app archive so arquillian can't run on server side
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/2/17 Luca Merolla <[email protected]>
>
> > Ok, I'll try tomorrow.
> >
> > In the mean time, by using @RunAsClient and @InSequence, I have figured
> out
> > how to use testable=true and still use both:
> > - the arquillian persistence to load the dataset (even if in my case it
> > fails for now)
> > - execute the successive methods as client (testable=false) with
> > @RunAsClient
> >
> > I'll let you know the results of the snapshot of tomorrow.
> >
> > Thanks!
> >
> >
> > On Sun, Feb 17, 2013 at 11:45 PM, Romain Manni-Bucau
> > <[email protected]>wrote:
> >
> > > i fixed some few things in tomee embedded
> > >
> > > should work with the snapshot of tomorrow
> > >
> > > FYI i removed all adapters but the tomee embedded one to avoid side
> > effects
> > > + used a in container test (testable = true).
> > >
> > >
> > > *Romain Manni-Bucau*
> > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > > *Blog: **http://rmannibucau.wordpress.com/*<
> > > http://rmannibucau.wordpress.com/>
> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > > *Github: https://github.com/rmannibucau*
> > >
> > >
> > >
> > > 2013/2/16 Luca Merolla <[email protected]>
> > >
> > > > I have tested with both:
> > > >
> > > > tomee-1.6.0-SNAPSHOT
> > > > openejb-core-1.6.0-SNAPSHOT
> > > >
> > > > but I still get the same exception. Probably there is something that
> > > > Arquillian needs that I have not found so far
> > > >
> > > >
> > > > On Sat, Feb 16, 2013 at 7:19 PM, Romain Manni-Bucau
> > > > <[email protected]>wrote:
> > > >
> > > > > http://repository.apache.org/snapshots/
> > > > > Le 16 févr. 2013 18:42, "Luca Merolla" <[email protected]> a
> > > écrit
> > > > :
> > > > >
> > > > > > In which maven repository can I find the 1.6.0-SNAPSHOT?
> > > > > >
> > > > > >
> > > > > > On Sat, Feb 16, 2013 at 4:30 PM, Romain Manni-Bucau
> > > > > > <[email protected]>wrote:
> > > > > >
> > > > > > > Right,
> > > > > > >
> > > > > > > Maybe try the snapshot about this error
> > > > > > > Le 16 févr. 2013 16:17, "Luca Merolla" <[email protected]
> >
> > a
> > > > > écrit
> > > > > > :
> > > > > > >
> > > > > > > > Quick update, I have removed from @Deployment the attribute
> > > > > > > testable=false
> > > > > > > > because it seems is not supported by arquillian persistence.
> > > > > > > >
> > > > > > > > Now I get another error, but "No Naming Context Available".
> > > > > > > > logs: http://pastebin.com/tnEtYynK
> > > > > > > >
> > > > > > > > Maybe is a missing dependency
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Sat, Feb 16, 2013 at 3:59 PM, Luca Merolla <
> > > > > [email protected]
> > > > > > > > >wrote:
> > > > > > > >
> > > > > > > > > I have managed to create the datasource with Arquillian
> > > > properties
> > > > > as
> > > > > > > you
> > > > > > > > > suggested.
> > > > > > > > >
> > > > > > > > > Now I see hibernate creating the tables, and executing
> > queries,
> > > > but
> > > > > > > > > the @UsingDataSet annotation seems ignored and the database
> > is
> > > > not
> > > > > > > > > populated with the data from the dataset and the query
> > returns
> > > > zero
> > > > > > > > > entities.
> > > > > > > > >
> > > > > > > > > Here is the output
> > > > > > > > >
> > > > > > > > > http://pastebin.com/smFTJg1X
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Sat, Feb 16, 2013 at 3:32 PM, Romain Manni-Bucau <
> > > > > > > > [email protected]
> > > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > >> Resources.xml is in web-inf so shrinkwrap is fine.
> > > > > > > > >>
> > > > > > > > >> For global datasource use properties syntax in
> "properties"
> > > > > property
> > > > > > > of
> > > > > > > > >> the
> > > > > > > > >> tomee container in arquillian.xml (ds =
> > > > > > > > new://Resource?type=DataSource...)
> > > > > > > > >> Le 16 févr. 2013 15:08, "Luca Merolla" <
> > > [email protected]>
> > > > a
> > > > > > > > écrit :
> > > > > > > > >>
> > > > > > > > >> > Is it possible to use resources.xm like that:
> > > > > > > > >> >
> > > > > > > > >> > <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > > >> > <resources>
> > > > > > > > >> > <Resource id="nuvolaDS" type="javax.sql.DataSource">
> > > > > > > > >> > JdbcDriver org.h2.Driver
> > > > > > > > >> > JdbcUrl jdbc:h2:mem:nuvola_test;DB_CLOSE_DELAY=-1
> > > > > > > > >> > UserName sa
> > > > > > > > >> > Password
> > > > > > > > >> > JtaManaged true
> > > > > > > > >> > </Resource>
> > > > > > > > >> > </resources>
> > > > > > > > >> >
> > > > > > > > >> > and then how do I configure in arquillian.xml to use
> this
> > > > > resource
> > > > > > > > file?
> > > > > > > > >> >
> > > > > > > > >> > I have tried to add something like that but it doesn't
> > work
> > > > > > > > >> >
> > > > > > > > >> > <container qualifier="tomee">
> > > > > > > > >> > <configuration>
> > > > > > > > >> > <property
> > > > > > name="openEjbXml">tomee-embedded/resources.xml</property>
> > > > > > > > >> > </configuration>
> > > > > > > > >> > </container>
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> > On Sat, Feb 16, 2013 at 12:09 PM, Romain Manni-Bucau
> > > > > > > > >> > <[email protected]>wrote:
> > > > > > > > >> >
> > > > > > > > >> > > Basically dbunit doesnt use the persistence.xml and
> with
> > > jta
> > > > > > > > >> persistence
> > > > > > > > >> > > unit the datasource is configure in arquillian.xml (in
> > > > > > properties
> > > > > > > > >> > property)
> > > > > > > > >> > > or providing a tomee.xml.
> > > > > > > > >> > >
> > > > > > > > >> > > I know Jean-Louis extended dbunit to reuse the jndi
> > > > > datasource,
> > > > > > > > maybe
> > > > > > > > >> he
> > > > > > > > >> > > could share his code
> > > > > > > > >> > > Le 16 févr. 2013 12:03, "Luca Merolla" <
> > > > > [email protected]>
> > > > > > a
> > > > > > > > >> écrit
> > > > > > > > >> > :
> > > > > > > > >> > >
> > > > > > > > >> > > > Hi all,
> > > > > > > > >> > > >
> > > > > > > > >> > > > I'm still testing Arquillian with TomEE embedded
> and I
> > > > would
> > > > > > > like
> > > > > > > > to
> > > > > > > > >> > > load a
> > > > > > > > >> > > > dataset generated with DBUnit.
> > > > > > > > >> > > >
> > > > > > > > >> > > > I have seen some examples that are using the
> > > > > > > > >> > > > annotation  @UsingDataSet("dataset.xml") however I
> > don't
> > > > see
> > > > > > any
> > > > > > > > >> DBUnit
> > > > > > > > >> > > > information about the data loaded and in fact in my
> > test
> > > > > > cases,
> > > > > > > > the
> > > > > > > > >> DAO
> > > > > > > > >> > > is
> > > > > > > > >> > > > returning null from the database query.
> > > > > > > > >> > > >
> > > > > > > > >> > > > Here is the project to reproduce the issue
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://www.fileconvoy.com/dfl.php?id=gad1e779cec1eb3289992251597f1580011e18db1d
> > > > > > > > >> > > >
> > > > > > > > >> > > > I thought it was a problem of dependencies, then I
> > have
> > > > > added
> > > > > > > > >> DBUnit in
> > > > > > > > >> > > > arquillian-pom.xml file but nothing changed.
> > > > > > > > >> > > >
> > > > > > > > >> > > > My application is using PostgreSQL, but for the
> > testing
> > > I
> > > > > > wanted
> > > > > > > > to
> > > > > > > > >> use
> > > > > > > > >> > > an
> > > > > > > > >> > > > in-memory database like H2 or HSQL. In the
> > > > persistence.xml I
> > > > > > > have
> > > > > > > > >> tried
> > > > > > > > >> > > to
> > > > > > > > >> > > > configure HSQL.
> > > > > > > > >> > > >
> > > > > > > > >> > > > Thanks in advance,
> > > > > > > > >> > > > LM
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> > --
> > > > > > > > >> >   *Luca Merolla*
> > > > > > > > >> > Management, Business & Technology Consultant
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >  <http://maps.google.com/maps?q=&hl=en>  *Mobile:*
> > > > > +393774569974
> > > > > > > > >> > *Email:* [email protected]
> > > > > > > > >> >  *www.linkedin.com/in/lucamerolla*
> > > > > > > > >> > *Website <http://www.merollaconsulting.com>*
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> > Merolla Consulting Limited
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > >   *Luca Merolla*
> > > > > > > > >
> > > > > > > > > Management, Business & Technology Consultant
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >  <http://maps.google.com/maps?q=&hl=en>
> > > > > > > > >  *Mobile:* +393774569974
> > > > > > > > > *Email:* [email protected]
> > > > > > > > >  *www.linkedin.com/in/lucamerolla*
> > > > > > > > > *Website <http://www.merollaconsulting.com>*
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Merolla Consulting Limited
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >   *Luca Merolla*
> > > > > > > > Management, Business & Technology Consultant
> > > > > > > >
> > > > > > > >
> > > > > > > >  <http://maps.google.com/maps?q=&hl=en>  *Mobile:*
> > +393774569974
> > > > > > > > *Email:* [email protected]
> > > > > > > >  *www.linkedin.com/in/lucamerolla*
> > > > > > > > *Website <http://www.merollaconsulting.com>*
> > > > > > > >
> > > > > > > >
> > > > > > > > Merolla Consulting Limited
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >   *Luca Merolla*
> > > > > > Management, Business & Technology Consultant
> > > > > >
> > > > > >
> > > > > >  <http://maps.google.com/maps?q=&hl=en>  *Mobile:* +393774569974
> > > > > > *Email:* [email protected]
> > > > > >  *www.linkedin.com/in/lucamerolla*
> > > > > > *Website <http://www.merollaconsulting.com>*
> > > > > >
> > > > > >
> > > > > > Merolla Consulting Limited
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >   *Luca Merolla*
> > > > Management, Business & Technology Consultant
> > > >
> > > >
> > > >  <http://maps.google.com/maps?q=&hl=en>  *Mobile:* +393774569974
> > > > *Email:* [email protected]
> > > >  *www.linkedin.com/in/lucamerolla*
> > > > *Website <http://www.merollaconsulting.com>*
> > > >
> > > >
> > > > Merolla Consulting Limited
> > > >
> > >
> >
> >
> >
> > --
> >   *Luca Merolla*
> > Management, Business & Technology Consultant
> >
> >
> >  <http://maps.google.com/maps?q=&hl=en>  *Mobile:* +393774569974
> > *Email:* [email protected]
> >  *www.linkedin.com/in/lucamerolla*
> > *Website <http://www.merollaconsulting.com>*
> >
> >
> > Merolla Consulting Limited
> >
>

Reply via email to