vendredi 8 juillet 2016

Unit test in multi-module gradle spring project

I have multi-module project with similar structure as below:

  • core (which includes Application Context Configuration) as a main project includes core-lib
  • core-lib (which is independent of main project, contains classes for communicate with core (dtos, some logic))

I want to write test in core-lib module but I don't have App Context Config there and I can't run the whole Spring Application.

How to run unit tests in core-lib which depends of main core project classes (eg. Database configuration bean)?.

Aucun commentaire:

Enregistrer un commentaire