Hi, sry for the newbie question but I could not figure out from documentation how to inject core services in unit tests.
I am using TestConstainer as documented and my test db is getting created and initialised. Now if I want to test a service say DummyService, I am injecting same in my unit test but its null.
I tried using AppBeans also but got no such bean found. Basically I do not want to mock a service but actually call that.
injection in Tests does not really work (although i saw it working in Spring boot applications). So you have to use AppBeans.get(MyService.NAME) for it to work…