#9 Problem with MockDriver.setupConnect

open
Jeff Martin
None
5
2002-10-21
2002-09-19
Anonymous
No

I am testing code that uses
DriverManager.getConnection(ConnectionString);

If I call MockDriver.setupConnect the connection is
only valid for that instance of the driver. However If
I make the field connection in MockDriver static so
that calls to setupConnect remain for all instances it
works fine.

Discussion

  • Steve Freeman
    Steve Freeman
    2002-10-21

    • assigned_to: nobody --> custommonkey
     
  • Steve Freeman
    Steve Freeman
    2002-12-16

    Logged In: YES
    user_id=123464

    Sorry, don't understand the problem. Please can you
    clarify. With an example?