O'Reilly logo

Lift Application Development Cookbook by Gilberto T. Garcia Jr.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing your application using an in-memory database

Until now, we have learned how to integrate our Lift application with the database using Record and Squeryl. Now it is time to learn, similar to what we did in Chapter 5, Working with Databases, about how to test an application that uses these two components: Record and Squeryl.

Getting ready

We will modify the project that we have worked on in the previous recipe. Again, you can modify it directly or create a new one by duplicating it.

How to do it...

To modify an old or a new project, perform the following steps:

  1. Add h2 as a new dependency into the Seq libraryDependencies section in the build.sbt file:
        "com.h2database"    % "h2"                  % "1.3.167" % "test"
  2. In the build.sbt file, set sbt to not execute tests ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required