Just a quick question ... is subject auto-creation implemented? I've
never seen it working. Even with @Subject(implementation = ...) I get
NPEs when trying to use the subject.
Jem
Short answer: It's "implemented" but not hooked up.
Long answer...
A while back I rewrote all the actor auto creation code and test drove
a bunch of it. I basically never got the subject creation completed.
It is there (TestSubjectAutoCreator?) in the test tree, but I didn't
consider it good enough, or of the right design to move over into the
production tree. It's also pretty stupid, you've got to give it hints
to find the right implementation to instantiate and it doesn't
automatically hook in mocks & stubs if they're exposed in the
constructor of the subject (i.e. in a DI-fashion). Take a look in the
Instinct test code for examples of how it's used.
It wouldn't be too hard to get a basic version working, it was more
that I wanted to get the other actors working fully first before
moving on to it. It's been used for probably a good 6 months though in
the Instinct tests & specs though, so it's probably good enough to
hook in, once the design is munged over to a similar design as the
other actor creators.
Tom
--
tom adams | e:tomjadams<at>gmail.com
That's excellent! Thanks.
Tom