question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TestKit support for JDBC

See original GitHub issue

With Lagom 1.2, you can enable support for Cassandra in TestServer, or you can disable persistence entirely (which is the default) but there’s no support for testing persistence with JDBC.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
octonatocommented, Jan 10, 2018

I have a fix for this and will submit a PR soon.

1reaction
ignasi35commented, Jun 15, 2017

This issue refers to running an integration tests using akka-persistence over an RDBMS database.

This issue originally required supporting JDBC for testing but implicitly meant RBDMS. The current lagom offer spans 3 different read-sides for RDBMS:

  • javadsl - jdbc
  • javadsl - jpa
  • scaladsl - slick

which could make the testing a bit more difficult since the modules to start could differ.

My previous message was confusing:

this issue needs clarification as it only applies to javadsl.

Hope this is more clear now.

(edited)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slick TestKit
Running sbt test discovers MyPostgresTest and runs it with TestKit's JUnit runner. This in turn causes the database to be set up through...
Read more >
Spring JdbcTemplate Unit Testing - Baeldung
Spring JdbcTemplate is a powerful tool for developers to focus on writing SQL queries and extracting results. It connects to the back-end ...
Read more >
Spring - Simplifying Jdbc Unit Testing with JdbcTestUtils
The class JdbcTestUtils has utility methods which can be used with JdbcTemplate to simplify standard database testing scenarios.
Read more >
How do I unit test jdbc code in java? [closed] - Stack Overflow
The point of your test is to test your jdbc code and make sure it works. ... I prefer using EasyMock for testing...
Read more >
Getting started with Unit Testing of JDBC based DAOs with the ...
For one of our Java projects, I wanted to help a colleague getting started with unit testing. Due to high time pressure, there...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found