Hi,

We have to add functionality to the provided realms.  We started with
a JDBCRealm, extended it and added our custom functionality.

Now I've changed from a JDBCRealm (as the super class) to a
DataSourceRealm as the super class.

The problem is - how can I unit test a DataSourceRealm outside of the
tomcat container?

With the extended jdbc realm it was simple to inject the jdbc driver
class name etc in the setUp, but with the DataSourceRealm, I cannot
create an InitialContext without either using the tomcat container
itself (a bit of overkill for a unit test), or using suns fscontext,
but that doesn't even seem to be available (certainly not via any m2
repos)

So any ideas?

Kev

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to