Nullpointer while running Junit Test Case

Hi Thiomir

I have implemented Junit test case looking at example shared on temporal official docs. In activity implementation I have autowired few config classes, it works fine when i am running application normally but while running test case the autowired class is getting initialised as null.


Hi, can you give more info or show test code?
My guess is maybe that you have a different src/test/resources/application.yaml (or properties) that might be used in tests?

We added a SpringBoot sample with test in java samples repo if it helps. Test here.