Most of http://tomee.apache.org/ng/developer/testing/index.html will give
you EE injections in tests including UserTransaction
Le 4 juin 2016 23:54, "Leonardo K. Shikida" <[email protected]> a écrit :

> well, I was trying to run a unit test here :-)
>
> []
>
> Leo
>
> On Sat, Jun 4, 2016 at 12:43 PM, Romain Manni-Bucau <[email protected]
> >
> wrote:
>
> > Think it references http://tomee.apache.org/clients.html but not sure
> that
> > is the most modern coding style to be honest. What is your goal?
> > Le 4 juin 2016 14:39, "Leonardo K. Shikida" <[email protected]> a écrit
> :
> >
> > > In
> > >
> > > http://tomee.apache.org/unit-testing-transactions.html
> > >
> > > there's
> > >
> > > protected void setUp() throws Exception {
> > >     // initialize jndi context as usual}
> > >
> > > sorry, I don't know how to initialize jndi context (as usual)
> > >
> > > :-)
> > >
> > > can anyone update the example pls?
> > >
> > > []
> > >
> > > Leo
> > >
> >
>

Reply via email to