From the course: Creating a Book Search Engine from Scratch Using Java and GitHub Copilot

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Writing integration tests

Writing integration tests

- [Instructor] All right, so the whole point of building this entire project is so that you can run the server and your users can interact with it. But so far, we have written all this code and haven't started the server even once. Now let's do that now. And to give you some idea, it'll fail first, and I want that to fail so that I can give you idea on why this is failing. So that in future, if you see some issues like that, you will know why that would have happened. So I'm going to run the mvn spring-boot:run command and I'm expecting that this will work and it is trying to run at the moment, it is trying to bring up the server, but it failed. It failed because it is trying to find the data source which it can connect to and it could not find one. The question is why is it the case that it was not able to find the data source? I mean, we are running all our tests and everything is working fine. So turns out when we were running it on the test side, we provided it with a file called…

Contents