A very stubborn private static member

P

pkriens

The easy solution is to load the class via a separate class loader.
This allows you to just create a new class for each of your tests. The
URLClassLoader is quite easy to use for this.

If you would use OSGi (e.g. Oscar or Knopflerfish), you could write
your tests as bundles and the infrastructure would provide this
behavior for you.

Kind regards,


Peter Kriens
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top