1
0
Commit Graph

1571 Commits

Author SHA1 Message Date
Simon Kitching
5f4f76c19c Provide facility to add URLs to the classpath.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369711 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:53:44 +00:00
Simon Kitching
dac6d6bee6 Remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369709 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:52:41 +00:00
Simon Kitching
e934c30030 Simple code cleanup; classloader for LogFactory class is computed once at startup.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369705 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:22:21 +00:00
Simon Kitching
0137795092 Tidy imports only
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@360479 13f79535-47bb-0310-9956-ffa450edef68
2006-01-01 07:42:12 +00:00
Robert Burrell Donkin
2f2b9d43eb Added WeakHashtable to standard distribution.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@356024 13f79535-47bb-0310-9956-ffa450edef68
2005-12-11 21:21:10 +00:00
Robert Burrell Donkin
d215df346d Moved optional distribution into contrib.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@356008 13f79535-47bb-0310-9956-ffa450edef68
2005-12-11 20:29:58 +00:00
Robert Burrell Donkin
ae7e0b3157 Moved demonstration away from the main source directory to a holding area. The aim is to clean up the source distribution.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@355971 13f79535-47bb-0310-9956-ffa450edef68
2005-12-11 16:52:00 +00:00
Robert Burrell Donkin
5b27788079 Fixed version number.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@348290 13f79535-47bb-0310-9956-ffa450edef68
2005-11-22 23:31:17 +00:00
Dion Gillard
dee4fb2492 Bug 37314 - Fixes to POMs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@348048 13f79535-47bb-0310-9956-ffa450edef68
2005-11-22 00:27:09 +00:00
Robert Burrell Donkin
001f359d58 Workaround for buggy reflection. Thanks to Dennis Lundberg for discovering this problem.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@345332 13f79535-47bb-0310-9956-ffa450edef68
2005-11-17 21:39:26 +00:00
Robert Burrell Donkin
010135be0d Fixed broken link. Thanks to Ortwin Glück for spotting this problem.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@330625 13f79535-47bb-0310-9956-ffa450edef68
2005-11-03 20:32:34 +00:00
Robert Burrell Donkin
8878a2a0ff Added comments about dependencies.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@330384 13f79535-47bb-0310-9956-ffa450edef68
2005-11-02 23:39:37 +00:00
Brett Leslie Porter
01562fa6c4 PR: 37014
Submitted by: Carlos Sanchez
improved dependency information for maven2 users in future releases


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@321118 13f79535-47bb-0310-9956-ffa450edef68
2005-10-14 13:46:09 +00:00
Simon Kitching
8b1398cfa1 Concrete subclass of the generic log4j tests, bound to log4j12.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@220002 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 06:09:51 +00:00
Simon Kitching
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.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@220001 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 06:07:30 +00:00
Simon Kitching
72a6e4f9f6 log4j tests now all work fine with <batchtest> so remove special case code for log4j.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209738 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 11:46:41 +00:00
Simon Kitching
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.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209737 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 11:45:25 +00:00
Simon Kitching
a9958f04f8 Remove obsolete unit test files; see StandardTests class and its concrete subclasses.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209731 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 10:09:39 +00:00
Simon Kitching
41c4b10250 Major restructure of log4j unit tests. All the same tests are done as before,
but in a (hopefully) clearer and more maintainable way.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209730 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 10:08:25 +00:00
Simon Kitching
8831d63879 Minor tweak to javadocs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209729 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 10:07:13 +00:00
Simon Kitching
9d0c1a7422 Rename LogTest to LogTestCase for consistency.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209713 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 07:08:54 +00:00
Simon Kitching
bfb095df60 Fail the build if any unit test fails. Also removed some redundant stuff.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209712 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 07:03:41 +00:00
Simon Kitching
4bd1bd70a0 * renamed test cases from Test.java to TestCase.java for consistency.
* removed unneeded suite and constructor methods.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209711 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 07:02:20 +00:00
Robert Burrell Donkin
d163dc0a8f Tweaked test to improve portability across JVMs. (Added sorting of resource to ensure known order.)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209642 13f79535-47bb-0310-9956-ffa450edef68
2005-07-07 20:16:25 +00:00
Robert Burrell Donkin
dfc008fc82 Tweaked test to improve portability across JVMs. (Added sorting of resource to ensure known order.)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209633 13f79535-47bb-0310-9956-ffa450edef68
2005-07-07 18:59:21 +00:00
Robert Burrell Donkin
9e417f2e72 The tests need JUnit version 3.8 or higher to run.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209629 13f79535-47bb-0310-9956-ffa450edef68
2005-07-07 18:36:47 +00:00
Simon Kitching
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.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209571 13f79535-47bb-0310-9956-ffa450edef68
2005-07-07 07:32:16 +00:00
Simon Kitching
d0281e782f Added getlibs task to automatically download all dependencies.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209455 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 13:02:33 +00:00
Simon Kitching
7bac91638b Minor tweak to unit testing stuff.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209454 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:42:56 +00:00
Simon Kitching
1b26226906 Massive removal of custom test targets now most tests support the PathableTestSuite stuff.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209453 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:41:30 +00:00
Simon Kitching
4c8d747d37 Use custom classloader setups to work around SimpleLog static insanity.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209452 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:37:25 +00:00
Simon Kitching
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.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209451 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:09:58 +00:00
Simon Kitching
35b1d6c80e Remove unused constructor, and clear LogFactory.factories cache before each test for cleanliness.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209450 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:07:40 +00:00
Simon Kitching
b808fe4666 Minor comment fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209449 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:06:32 +00:00
Simon Kitching
02ee1e9086 Rename from BadHashtablePropertyTest to BadHashtablePropertyTestCase for consistency.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209420 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 07:18:39 +00:00
Simon Kitching
6ceb7c0ab3 Change to using PathableTestSuite - this permits the test to be significantly simplified.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209419 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 07:17:45 +00:00
Simon Kitching
ac38503d3b Added comments re this class and junit reloadable classloaders.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209418 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 07:14:03 +00:00
Simon Kitching
b69deb90dd Move duplicated testResetContext tests out of ParentFirst and ChildFirst into GeneralTestCase.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209414 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 06:28:24 +00:00
Simon Kitching
c542c21c29 New test case for additional PathableTestSuite functionality.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209413 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 06:26:02 +00:00
Simon Kitching
4a0c892957 Save and restore system properties around tests.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209412 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 06:19:32 +00:00
Simon Kitching
1996c5af1b Renamed AltHashtableTest to AltHashtableTestCase for consistency.
Also removed unneeded constructor.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209410 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 05:29:57 +00:00
Simon Kitching
1ac4b57165 Rename AvalonLoggerTest to AvalonLoggerTestCase for consistency.
Also remove unneeded constructor.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209408 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 05:15:39 +00:00
Simon Kitching
85836bd32e JUnit TestCase class has had a default constructor for a long while now,
so remove pointless constructors for TestCase subclasses.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209407 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 05:14:12 +00:00
Simon Kitching
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.


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209252 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 09:52:57 +00:00
Simon Kitching
ec7eab0150 Added test cases for child-first behaviour of PathableClassLoader.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209245 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 08:50:41 +00:00
Simon Kitching
ab117df3c7 Fix bugs with child-first behaviour.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209244 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 08:49:54 +00:00
Simon Kitching
b1f4809445 Renamed to ParentFirstTestCase.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209243 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 08:49:03 +00:00
Simon Kitching
773fe5af3c Renamed from PathableTestCase, as it really tests parent-first classloading.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209240 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 08:10:19 +00:00
Simon Kitching
f19ff6e62e Add adapters jar to list of logical jars available to unit test code.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209202 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 03:42:38 +00:00
Simon Kitching
184e3781ef Remove unused imports.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209201 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 03:42:02 +00:00