Set up before each test.
This method ensures that the appropriate system property is defined
to force the LogFactory class to use the AltHashtable class as its
Hashtable implementation for storing factories in.
This does make the assumption that whatever JVM we are running in
doesn't initialise classes until they are actually referenced (ie the
LogFactory class hasn't been initialised before this method is called).
This is true of all JVMs I know of; and if it isn't then this test will
fail and someone will tell us.
|