testbox and wirebox in stand-a-lone mode doing strange things

Hi guys!

So I am using wirebox 2.0.0 and testbox 2.2.0 and i am running into some strange behaviour…

when i run individual tests for instance:

http://localhost:8500/API/pockets/test/integration/CreatePocketNumberSpec.cfc?method=runRemote

My tests are passing.

However when running the test using the Testbox Global Runner it suddenly can’t find my injector in the application struct.
On top of that the error thinks my application struct is of type java.lang.String.

I have searched the source from left, right and center to find where this is coming from, but to no avail… Does anyone have any bright idea’s or suggestions on how to debug this?

Thanks!
Tom Van Schoor

Ok I was being daft…

No need to set application.injector since application.wirebox is added when you create the injector. Things were somehow getting mixed up.

I think I have it working now. Thank you for being my rubber duck!

Thanks,
Tom