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
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
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
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
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
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
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
Simon Kitching
27d2386598
Added more unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209198 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 03:40:50 +00:00
Simon Kitching
14cd0d8326
Fix copyright statements on new files.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@202474 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 03:36:02 +00:00
Simon Kitching
9b59c323f6
Allow testcases to control the classloader hierarchy used during the test.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@202471 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 03:21:03 +00:00
Simon Kitching
549db6b069
Split Log4JLogger into Log4J12Logger and Log4J13Logger
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@193079 13f79535-47bb-0310-9956-ffa450edef68
2005-06-23 05:40:32 +00:00
Simon Kitching
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.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@191630 13f79535-47bb-0310-9956-ffa450edef68
2005-06-21 06:21:55 +00:00
Simon Kitching
a3f8e5302a
Merge in the allow-flawed branch, as there were no objections.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190565 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 10:03:48 +00:00
Simon Kitching
eb93a324e4
Clean up LoadTest testcase and include in standard test suite.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179566 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 09:12:24 +00:00
Simon Kitching
195ac37a76
Add better reporting when jdk14 handler setup isn't right.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@177867 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 01:41:23 +00:00
Simon Kitching
3200e8aa2e
Add test case for situation where context classloader is null.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@169388 13f79535-47bb-0310-9956-ffa450edef68
2005-05-10 00:47:03 +00:00
Dirk Verbeeck
b56a58e5de
svn:keywords correction
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@155426 13f79535-47bb-0310-9956-ffa450edef68
2005-02-26 13:10:49 +00:00
Robert Burrell Donkin
7a03f06584
LogFactory's Hashtable implementation (used to store LogFactoryImpl by classloader) can now be subclassed. This will default to WeakHashtable when this is present on the classpath, Hashtable otherwise. The implementation class can be specified by a system property. Based on a contribution by Brian Stansberry.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139056 13f79535-47bb-0310-9956-ffa450edef68
2004-11-10 23:00:47 +00:00
Robert Burrell Donkin
ed0269ef72
New test case for simple log date time setting
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139033 13f79535-47bb-0310-9956-ffa450edef68
2004-05-30 10:32:25 +00:00
Robert Burrell Donkin
4d10d0df0c
Enhanced simple log so that the date and time can be set. Bugzilla issue #27528 . Contributed by Dennis Lundberg.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139031 13f79535-47bb-0310-9956-ffa450edef68
2004-05-29 10:43:35 +00:00
Robert Burrell Donkin
d3ebabcd5d
Altered test case so that it will work both with head and 1.2.x of Log4J.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139028 13f79535-47bb-0310-9956-ffa450edef68
2004-05-19 20:59:56 +00:00
Robert Burrell Donkin
444a6b2829
New test case which tests the executation of all the basic methods.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139027 13f79535-47bb-0310-9956-ffa450edef68
2004-05-19 20:58:52 +00:00
Craig R. McClanahan
ef2a5e4383
Finish migration to the new Apache License (version 2.0):
...
* Add updated LICENSE.txt and new NOTICE.txt files.
* Add license header to currently unlicensed text files
(html, xml, properties).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139009 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 22:10:53 +00:00
Craig R. McClanahan
514f666482
Phase 1 of updating [logging] to the Apache License version 2.0. Executed
...
the "ReplaceLicense" utility in the committers module. Individual cleanups
and the addition of licenses to currently unlicensed files will follow in
a separate commit.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@139008 13f79535-47bb-0310-9956-ffa450edef68
2004-02-28 21:46:46 +00:00
Robert Burrell Donkin
4d51df78d4
Fixed typos in apache licenses
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138996 13f79535-47bb-0310-9956-ffa450edef68
2003-10-09 21:37:48 +00:00
Robert Burrell Donkin
c81ff3807f
Corrected licenses to match jakarta-commons standard.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138995 13f79535-47bb-0310-9956-ffa450edef68
2003-10-05 15:59:26 +00:00
Craig R. McClanahan
e7c2d81417
Make the remaining non-deprecated Log implementations also implement
...
Serializable, and enhance the unit tests for JDK 1.4 an Log4J logging
to validate the ability to deserialize and use such instances.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138991 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 21:58:59 +00:00
Craig R. McClanahan
45c7fb43cb
Make o.a.c.l.impl.SimpleLog Serializable.
...
Add more comprehensive unit tests for SimpleLog, including the ability
to serialize and deserialize instances.
This work will form the basis for making similar changes to the other
Log implementations (and their corresponding test cases).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138990 13f79535-47bb-0310-9956-ffa450edef68
2003-08-16 21:25:54 +00:00
Richard A. Sitze
76e5c8aaf7
Cleanup imports & some static method calls.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138986 13f79535-47bb-0310-9956-ffa450edef68
2003-07-18 14:11:45 +00:00
Robert Burrell Donkin
7539845c43
Made implementation of AvalonLogger more robust (avoiding NPEs when nulls are passed in) together with a testcase. Improved build by compiling tests for only those optional components whose dependencies are present. Submitted by Neeme Praks.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138983 13f79535-47bb-0310-9956-ffa450edef68
2003-05-14 11:14:24 +00:00
Richard A. Sitze
d5f08a7710
Remove unnecessary test constructors, let run with my archaic version of JUnit.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138975 13f79535-47bb-0310-9956-ffa450edef68
2003-04-10 22:40:37 +00:00
Craig R. McClanahan
7c71a7d917
Wrapper:
...
- Refactor the setup of class loaders so that it is clearer what is
going on
- For the Log4J tests, add the custom Appender implementation to
whichever class loader Log4J is put in
- Set and reset the thread context class loader to more accurately
simulate the environment of a servlet container.
build.xml:
- Implement the multi-classloader test scenarios for Log4J, equivalent
to those for JDK 1.4.
We now have a robust testing environment to catch any possible regressions
when modifying the functionality (such as ripping out Log4jFactory, as
discussed on COMMONS-DEV).
I don't have time to do the corresponding test scenarios for Avalon LogKit,
but anyone who wants to do so is welcome to create them.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138965 13f79535-47bb-0310-9956-ffa450edef68
2003-04-02 00:50:49 +00:00