65bec30a71
Fixes due to Log4J12Logger being renamed back to Log4JLogger and Log4J13Logger being removed.
Simon Kitching2006-01-19 23:55:30 +00:00
468b013d05
Fixes due to renaming of Log4J12Logger back to Log4JLogger
Simon Kitching2006-01-19 23:53:55 +00:00
fc9408a84f
Remove Log4J13Logger; log4j 1.3 is not yet released. Rename Log4J12Logger back to old name of Log4JLogger.
Simon Kitching2006-01-19 23:52:23 +00:00
de40e38a37
Walk the entire hierarchy of ClassLoaders, releasing memory for the current webapp from each copy of LogFactory found.
Simon Kitching2006-01-19 12:16:56 +00:00
73f2a07e70
Added note into javadocs about the fact that getFactory is not gauranteed to return the same instance per classloader environment. Issue #38026.
Robert Burrell Donkin2006-01-18 21:57:10 +00:00
19a76b429b
Add tests for new feature to disable loading of Log implementations via the TCCL. Move existing tests for disabling loading of LogFactory via TCCL to subdir "logfactory".
Simon Kitching2006-01-18 03:42:52 +00:00
1b6895e3c5
Add feature to disable loading of Log implementations from the TCCL.
Simon Kitching2006-01-18 03:38:38 +00:00
69cc4ff86d
Fix bug in test; custom MyFactory class wasn't specified in commons-logging.properties! Also, use constants instead of repeating custom class name as literal.
Simon Kitching2006-01-17 11:29:42 +00:00
7ff4b00fef
Tests for new feature to disable loading of LogFactory implementation via the TCCL.
Simon Kitching2006-01-17 10:40:00 +00:00
89a0e10f95
If config file has use_tccl=false, then don't load LogFactory implementation from the TCCL.
Simon Kitching2006-01-17 10:39:30 +00:00
c9a298dd65
Remove debug print statement accidentally left in code.
Simon Kitching2006-01-17 09:54:42 +00:00
9a1ec952ae
Unit tests for the new LogFactory feature which loads the commons-logging.properties file with the highest priority.
Simon Kitching2006-01-17 08:01:08 +00:00
477165adb1
Implement feature to load the commons-logging.properties file with the highest priority value, not just the first one found on the classpath.
Simon Kitching2006-01-17 07:56:00 +00:00
5f4f76c19c
Provide facility to add URLs to the classpath.
Simon Kitching2006-01-17 07:53:44 +00:00
ae7e0b3157
Moved demonstration away from the main source directory to a holding area. The aim is to clean up the source distribution.
Robert Burrell Donkin2005-12-11 16:52:00 +00:00
01562fa6c4
PR: 37014 Submitted by: Carlos Sanchez improved dependency information for maven2 users in future releases
Brett Leslie Porter2005-10-14 13:46:09 +00:00
8b1398cfa1
Concrete subclass of the generic log4j tests, bound to log4j12.
Simon Kitching2005-07-21 06:09:51 +00:00
b1d6285f15
Implement a cleaner mechanism for setting up a test suite for classes whose dependent libs are not present in the system classpath. The class containing the suite() method *does not have to be* the class that contains the test methods. By taking advantage of this, we can avoid the reflection stuff and the trivial helper class that was introduced earlier to solve this same problem.
Simon Kitching2005-07-21 06:07:30 +00:00
72a6e4f9f6
log4j tests now all work fine with <batchtest> so remove special case code for log4j.
Simon Kitching2005-07-08 11:46:41 +00:00
697b414639
Fix up log4j12 tests so no log4j lib needs to be in the classpath when the suite() method is called on any TestCase class.
Simon Kitching2005-07-08 11:45:25 +00:00
a9958f04f8
Remove obsolete unit test files; see StandardTests class and its concrete subclasses.
Simon Kitching2005-07-08 10:09:39 +00:00
41c4b10250
Major restructure of log4j unit tests. All the same tests are done as before, but in a (hopefully) clearer and more maintainable way.
Simon Kitching2005-07-08 10:08:25 +00:00
9d0c1a7422
Rename LogTest to LogTestCase for consistency.
Simon Kitching2005-07-08 07:08:54 +00:00
bfb095df60
Fail the build if any unit test fails. Also removed some redundant stuff.
Simon Kitching2005-07-08 07:03:41 +00:00
4bd1bd70a0
* renamed test cases from Test.java to TestCase.java for consistency. * removed unneeded suite and constructor methods.
Simon Kitching2005-07-08 07:02:20 +00:00
d163dc0a8f
Tweaked test to improve portability across JVMs. (Added sorting of resource to ensure known order.)
Robert Burrell Donkin2005-07-07 20:16:25 +00:00
dfc008fc82
Tweaked test to improve portability across JVMs. (Added sorting of resource to ensure known order.)
Robert Burrell Donkin2005-07-07 18:59:21 +00:00
3083b9a334
Removed method PathableClassLoader.getResources as in java1.4 and earlier this method is final (can't be overridden). This means changing the associated unit test too. As getResources doesn't explicitly indicate the order in which resources will be returned this is technically ok, though a little ugly.
Simon Kitching2005-07-07 07:32:16 +00:00
d0281e782f
Added getlibs task to automatically download all dependencies.
Simon Kitching2005-07-06 13:02:33 +00:00
1b26226906
Massive removal of custom test targets now most tests support the PathableTestSuite stuff.
Simon Kitching2005-07-06 12:41:30 +00:00
4c8d747d37
Use custom classloader setups to work around SimpleLog static insanity.
Simon Kitching2005-07-06 12:37:25 +00:00
2649aa8c6d
Remove unused constructor Set necessary System properties in code rather than assuming build.xml will set them. Call LogFactory.releaseAll before each test for cleanliness.
Simon Kitching2005-07-06 12:09:58 +00:00
35b1d6c80e
Remove unused constructor, and clear LogFactory.factories cache before each test for cleanliness.
Simon Kitching2005-07-06 12:07:40 +00:00
02ee1e9086
Rename from BadHashtablePropertyTest to BadHashtablePropertyTestCase for consistency.
Simon Kitching2005-07-06 07:18:39 +00:00
6ceb7c0ab3
Change to using PathableTestSuite - this permits the test to be significantly simplified.
Simon Kitching2005-07-06 07:17:45 +00:00
ac38503d3b
Added comments re this class and junit reloadable classloaders.
Simon Kitching2005-07-06 07:14:03 +00:00
b69deb90dd
Move duplicated testResetContext tests out of ParentFirst and ChildFirst into GeneralTestCase.
Simon Kitching2005-07-06 06:28:24 +00:00
c542c21c29
New test case for additional PathableTestSuite functionality.
Simon Kitching2005-07-06 06:26:02 +00:00
4a0c892957
Save and restore system properties around tests.
Simon Kitching2005-07-06 06:19:32 +00:00
1996c5af1b
Renamed AltHashtableTest to AltHashtableTestCase for consistency. Also removed unneeded constructor.
Simon Kitching2005-07-06 05:29:57 +00:00
1ac4b57165
Rename AvalonLoggerTest to AvalonLoggerTestCase for consistency. Also remove unneeded constructor.
Simon Kitching2005-07-06 05:15:39 +00:00
85836bd32e
JUnit TestCase class has had a default constructor for a long while now, so remove pointless constructors for TestCase subclasses.
Simon Kitching2005-07-06 05:14:12 +00:00
03f98ac40f
Update the test.pathable target. Note that the optional ant junit task is now used in this file - see comments at head of file for details.
Simon Kitching2005-07-05 09:52:57 +00:00
ec7eab0150
Added test cases for child-first behaviour of PathableClassLoader.
Simon Kitching2005-07-05 08:50:41 +00:00
6366c32135
Changes due to testcase classes now controlling their own classpaths. * The Wrapper class is no longer used. * The log4j tests run with log4j13 in the classpath have been removed for now; will implement this via another mechanism in the near future. Note that there are expected to be more cleanups applied to this file in the near future.
Simon Kitching2005-06-30 03:27:56 +00:00
9b59c323f6
Allow testcases to control the classloader hierarchy used during the test.
Simon Kitching2005-06-30 03:21:03 +00:00
486c9ab798
Need to include discovery as dependency for any target that tries to test xxx.present variables.
Simon Kitching2005-06-27 11:04:03 +00:00
c68672222d
Add dependency on prepare targets for new compile targets, so that if they are run independently the destination dirs will exist.
Simon Kitching2005-06-26 23:08:36 +00:00
e939036229
Improve warning messages for missing libs (thanks to Dennis Lundberg).
Simon Kitching2005-06-26 04:17:11 +00:00
0ecda83b98
Split compile target into separate pieces in order to assist gump. Target compile-only is now: show-lib-presence,compile-non-log4j,compile-log4j12,compile-log4j13,build-jar
Simon Kitching2005-06-26 04:11:08 +00:00
330e17e0ed
The created jarfiles now have the version# embedded in their names, so the test wrapper class can't just hard-wire their names any more. Instead, we pass the jarfile names in from the build.xml file as system properties.
Simon Kitching2005-06-21 06:21:55 +00:00
0f272fa209
Issue warning instead of error when ALLOW_FLAWED_CONTEXT is true and the context classloader is not related to the classloader used for LogFactoryImpl. This can happen with JBoss' Unified Classloader approach. See bugzilla#35423. Thanks to Brian Stansberry for the patch.
Simon Kitching2005-06-20 10:09:51 +00:00
e2a17e8fb8
Simplify discovery by using table of classes to check. Also enhance diagnostics a little. There are no functional changes in this patch.
Simon Kitching2005-06-17 08:09:22 +00:00
5af28f1cff
Add note re isXXXAvailable methods in LogFactoryImpl.
Simon Kitching2005-06-16 12:11:50 +00:00