juan_gandhi: (VP)
[personal profile] juan_gandhi
Now, say, I have a class class ParseBCBSofTX(val be: BrowsingExec, pat_ins: Patient_ins)

and I want to run my tests without having to talk to any database.

Here's what I write in my unittest:
  lazy val mockParser = new ParseBCBSofTX(null, pi) with MockDB { thisParser => /*overriding some methods*/


I do override stuff, but actually all I need to get rid of actual db is this: with MockDB

That's it.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

June 2025

S M T W T F S
1 2345 6 7
8 9 10 11 121314
15161718 1920 21
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 22nd, 2025 10:33 am
Powered by Dreamwidth Studios