i honestly am not sure i understand the difference … i’m trying to test a specific handler named report.cfc however main.cfc is being called so i suspect I am trying to do a handler test but its testing everything?
i’m really trying to get my mind wrapped around mocking and i’m on the verge of getting it b/c I think i’m missing a few pieces.
The BaseTestCase is the test case used for integration testing = Testing of the entire application from the ground up. This will create a virtual application with caching, DI, etc. and try to execute events. The handler annotation in your test does actually nothing unless you are doing a UNIT test of the handler which you should then be using the BaseHandlerTest as your parent.
So you are mixing your tests here. That is why main is firing, because it is firing the full life cycle. So the question is, are you trying to test everything top-down or just the Report handler in isolation, with no DI, no nothing, just the plain old handler.