Hi, You should look at : ClassFactoryWithOrganizationForTestCase I guess it is exactly what you are looking for.
And also SystemNavigationTest and SystemNavigationOnNewlyCreatedEnvironmentTest that uses an instance of this above class. #Luc 2010/12/10 Noury Bouraqadi <[email protected]> > > On 10 déc. 2010, at 02:15, Sean P. DeNigris wrote: > > Noury Bouraqadi-2 wrote: > >> > >> You need... to delete all references to classes for your environment > from > >> their superclasses. > >> This is part of what is performed by the obsolete message. > >> > > > > If I evaluated the code from my original post in a workspace, and then > > closed it, wouldn't everything go away when the temporary > SystemDictionary > > (which contains the SystemOrganizer and newClass) was gc-ed? > > > Object subclasses collection still includes a reference to the class you > created in a different envirenment. It will never be GCed. So, this is a > memory leak! > > Noury > > >
