1

I would like to test an etl process I have built out in java to load data up in mysql. Basically I would like to create an in memory database of mysql and then load data then run queries against it to make sure I have what I think I have. What is the current best practice for doing this? Thanks!

0

1 Answer 1

2

There are a already a bunch of related questions and answers, but I will share what I did for myself: using jcabi. It's not in-memory , but it starts a real live mysql instance and tears it down after the test. Another thing: you would then have integration test for this, not unit test. Read about the difference and see if you like this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.