Hi is there a way to capture/mock this code so i c...
# exposed
b
Hi is there a way to capture/mock this code so i can test if i pass correct params to correct fields
Copy code
Movie.new {
  this.name = "Name:$displayName"
}
a
I recommend you run your tests against an in-memory DB, such as the pure-java H2 DB. It implements the ANSI SQL specification, but also has compatibility modes for non-standard implementations like Mysql, and Postgres. I frequently use this test util to easily get a
DataSource
for my tests.
b
Thanks, i will check this solution