Hello Moosers,
By mistake I was trying to load a project from SqueakSource in which I had forgot to load some classes. The project is called XUnitTest and its main objective is to make Moose aware of unit tests, which in some cases it already is aware, but anyway, one of my tests was trying to load some class called Example1Test into Moose and then perform some assertions.
It turns out I'm really starting to use Monticello and there are certain things I still don't quite understand well, for example that it doesn't automatically realize all the classes I've changed and include them in the project XUnitTest, I didn't quite understand the message protocol part yet (method category). I guess doing that automatically would be dangerous.
Then I tried to load XUnitTest in a clean image (with Moose loaded of course) and I got this error:
"Sets can't meaningful contain nil as an element" at:
MooseimportClassesTask>>addClass: aClass ^classes add: aClass
Then I changed the code from this:
MooseSqueakClassPackageImporterTask>>initialize
super initialize. importerClass := SmalltalkImporter. classes := OrderedCollection new. classExtensions := OrderedCollection new. packages := OrderedCollection new.
To this:
MooseSqueakClassPackageImporterTask>>initialize
super initialize. importerClass := SmalltalkImporter. classes := IdentitySet new. classExtensions := OrderedCollection new. packages := OrderedCollection new.
Now, the test correctly fails indicating that my class is missing (I'm ataching a picture of it), which I think is the intended behavior. So my questions are:
1. Is this the intended behavior? 2. If it is, who should I contact with this patch? (or how can I know who to contact)
Cheers, Guillermo.