-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Roy,

On 8/10/16 11:11 AM, Roy Leonardus wrote:
> Hello Christopher,
> 
> Thank you for the tip, i managed to test the code using the apache
> Derby now.
> 
> it would be interesting to enhance the driver class to respond with
> some result set, but i need to review it again.
> 
> and it will be another homework for me.

Aren't you mocking-up the JDBC driver? Just add a return value for
that call... something like:

mockDriver.expect("next").return(true);
mockDriver.expect("getInt", 1).return(0);

You'll have to adapt that to your actual mocking framework, of course.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXq0uOAAoJEBzwKT+lPKRY99gQAIw/khRNXErKjzoaqYFXjY4/
GIdl8u2kH1V7AKePBK+o9EjggO+5qhHZOSFHsOGhiE0GbTIp3tRzRZ4/eBVit+cv
dprp6eY1DtRznq1QahzGmzg+8XG7P7STbG1dE6Kj+0rnRAlWlmqCuLtT3WyOyolD
FqfwedLJomQ+T6aFaY0MsdXHwfQ6m35EXHj5KrAOoFHWP7OLY/oXaFi2b1ztRRTB
9EY9Y8fuD08emRiv4cUyDiO1rz0mLRtkTS+WTMjg6OUogHkWu0fjXn0YFZx1shkh
RrB7OyWTIc9EXOffp10enKv2LfoW71c+NbZY8GtiEswlkPrNIjR08xA5rzhzLm+q
KpJFRea+kXwm1XI7M2o+r3MeqTg9WEghvOB3T7ZwnaCQ0weB5B5dTYnredpaYXEC
0PEmekF+69VuDbNYw6zAJVHtAbW5gSIEOl3mHKR2Em9PYKuleHpxpqABd5n/OBAG
bZb/pWWamaVOQ8W5Joo+SHhRwH9TdrSDxgTk2e54FGUgjNu+XNy/0Qd1XLbOL4IY
qaxzsnrHugHieUlw4dWeELr31wmX/BbQinIKK3XQQwKbTiK3fslP19NBpp0PbzY4
SIBe+DxhKGygkyrj/FVYV+VrHtvc68zu2AH97RAOWlLrKB/KEqidCHdTGnRjQjUz
cdXH+GaFUBo/zvtT4jhq
=uDwn
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to