Hi,

With the help of Rickard, I finally
managed to make a UserTransaction
implementation for stand-alone clients
working.
At least it might work, since the CTS
testUsrTrx test doesn't complain if
enabled. However, this test doesn't
even start a transaction, it only does
a lookup.

Some harder tests of UserTransaction
is IMHO needed. This applies both to
client UserTransactions and BMT bean
UserTransactions, and for both the
tests needed is the same.
So I guess factoring out this test to
a seperate class that can be run in
both situations would be appropriate.

I was thinking about using the
CtsBmpBean as a resource for testing.
However, this has some private methods
setUp() and tearDown() for initializing
the database. Before every create these
two methods are created, so I guess it
is impossible to create two instances
here.
Would anybody object if I changed this
to a initDB() home method that ensures
an empty table is present?


Best Regards,

Ole Husgaard.

Reply via email to