Gary D. Gregory
1807d469fe
Add final modifier to private fields.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1432548 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:39:40 +00:00
Gary D. Gregory
3e255fea93
Convert control statement bodies to block.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1432547 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:39:03 +00:00
Gary D. Gregory
268b725476
Remove unnecessary parentheses.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1432026 13f79535-47bb-0310-9956-ffa450edef68
2013-01-11 13:02:50 +00:00
Dennis Lundberg
663137e8f0
Merge test for LOGGING-119 into the standard test class for WeakHashtable.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1389022 13f79535-47bb-0310-9956-ffa450edef68
2012-09-23 11:33:16 +00:00
Sebastian Bazley
d02c93bf15
Allow test cases to run OK under Maven/Surefire
...
[does not seem to be needed for Ant testing]
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1363622 13f79535-47bb-0310-9956-ffa450edef68
2012-07-20 02:04:03 +00:00
Sebastian Bazley
8316eb1fa1
Test cases don't need main() methods
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362969 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 14:40:37 +00:00
Sebastian Bazley
b16794f11a
Unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362968 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 14:37:13 +00:00
Sebastian Bazley
66c1dcbf47
Redundant semi-colons
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362959 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 14:14:29 +00:00
Sebastian Bazley
7297a70b96
Organize imports (don't use wildcards)
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362902 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 12:08:08 +00:00
Sebastian Bazley
3f5848ecbf
Increase number of loops to try again to cause Continuum to fail
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362740 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 01:48:25 +00:00
Sebastian Bazley
2b99f1c33c
Double number of loops to try and Continuum to fail
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362738 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 01:26:31 +00:00
Sebastian Bazley
cd798d00eb
Quieten Avalon tests
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362737 13f79535-47bb-0310-9956-ffa450edef68
2012-07-18 01:22:22 +00:00
Sebastian Bazley
c5b7fcfec2
LOGGING-119 deadlock on re-registration of logger
...
Added test case showing the problem
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362553 13f79535-47bb-0310-9956-ffa450edef68
2012-07-17 16:11:25 +00:00
Simon Kitching
487dcaadea
Trivial change: remove unused import
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@695209 13f79535-47bb-0310-9956-ffa450edef68
2008-09-14 12:31:09 +00:00
Simon Kitching
576e85c122
LOGGING-117. Clean up system props after unit test so that other unit tests do not fail.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@593871 13f79535-47bb-0310-9956-ffa450edef68
2007-11-11 11:51:36 +00:00
Dennis Lundberg
5c61777bde
Add license headers.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@581102 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 22:28:54 +00:00
Dennis Lundberg
051b217ae3
Replace tab characters with spaces. No other changes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@581090 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 22:01:06 +00:00
Dennis Lundberg
78942c8588
Set EOL style to Native.
...
Remove tab characters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@581081 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 21:43:58 +00:00
Dennis Lundberg
b9538406b1
Fix failing tests due to r563165.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@568760 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 22:19:45 +00:00
Simon Kitching
b310a4ef0e
Use a dummy exception class when calling log(exception). This makes the unit test output less confusing.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@563165 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 15:08:05 +00:00
Simon Kitching
d5951da110
Make test compatible with maven2 surefire.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427814 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 00:18:56 +00:00
Simon Kitching
ff8a0111c0
Have DefaultConfigTestCase explicitly set up its classpath. When run from ant, log4j is not on the
...
classpath so using the default setup works; however when run from maven2 surefire, log4j is on the
path. Explicitly controlling the test classpath works in both cases.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427808 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 00:08:20 +00:00
Simon Kitching
c340a77d5b
Manually force our custom java.util.logging.Handler class to be loaded via the
...
system classloader. This means that the unit test can successfully run even
when the class is not in the system classpath (as happens when running tests
with maven2's surefire plugin for example).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427800 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:48:14 +00:00
Simon Kitching
e0dc5a6f51
Remove unused imports (fix compile warnings).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427798 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:46:32 +00:00
Simon Kitching
60e84957f8
When multiple jars on classpath match logical lib name, use jar with shortest name.
...
Also remove debug print statement.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427797 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:45:58 +00:00
Simon Kitching
7d8b923dc2
Add javadoc only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427477 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 07:37:00 +00:00
Simon Kitching
be64ad867c
Minor test tidyups (including fixing incorrect comment due to copy-and-paste).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427418 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 03:10:13 +00:00
Simon Kitching
563417f77e
Change test to be compatible with maven2 surefire; when using surefire, junit is not loaded
...
via the system classpath.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427396 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 01:16:02 +00:00
Simon Kitching
8b353e9470
Change key of servlet api jar from "servletapi" to "servlet-api". The maven2 tests pull
...
this jar from the maven2 repository, and in there the jarfile has a different name
from the jarfile in the maven1 repo where ant pulls it from :-(.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427395 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 01:14:53 +00:00
Simon Kitching
e7ab5b24d8
Allow libs for test to be discovered via the classpath as well as via system properties.
...
This has been implemented to suppprt running tests via the maven surefire plugin, but is
a general-purpose mechanism.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427394 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 01:13:11 +00:00
Simon Kitching
557f97f1a5
Make unit tests compatible with maven2 Surefire plugin.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@425249 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 01:30:16 +00:00
Simon Kitching
cd2518594b
Add javadoc about setExplicitLoader/addLogicalLib.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@425247 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 01:26:37 +00:00
Simon Kitching
d82ad2ae6e
Update license info using script update-AL20.pl, as per http://www.apache.org/legal/src-headers.html
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424108 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 23:19:55 +00:00
Simon Kitching
e0d9632d8b
Rename testcase files, as batch junit testing only detects classes ending in "TestCase".
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424082 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 21:59:50 +00:00
Simon Kitching
23d8dd0c2c
Only count security exceptions before a message is actually logged, as j.u.logging
...
does (and should) generate security exceptions.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424078 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 21:52:52 +00:00
Simon Kitching
7d08044587
Add more unit tests for SecurityManager/AccessController issues
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@423653 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 23:26:49 +00:00
Simon Kitching
fc6da5291a
Add unit tests to check behaviour when running in applet-like environments
...
with restrictive security managers.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@420478 13f79535-47bb-0310-9956-ffa450edef68
2006-07-10 10:25:49 +00:00
Simon Kitching
ea5bc9e2a3
Remove weird unicode char in comments that causes compile warnings
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@420429 13f79535-47bb-0310-9956-ffa450edef68
2006-07-10 06:03:14 +00:00
Simon Kitching
ad4970dbde
Fix a few trivial compiler warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@406303 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 10:02:26 +00:00
Simon Kitching
29935da25a
Fix incorrect package name in unit test. The test was still being compiled and
...
run ok; the generated .class was just ending up in an odd directory.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@406292 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 09:31:48 +00:00
Robert Burrell Donkin
cd2e8b9657
Replaced method introduced in JDK1.4 with clean implementation.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@396112 13f79535-47bb-0310-9956-ffa450edef68
2006-04-22 11:38:25 +00:00
Simon Kitching
cfb31332a1
* Fix bug where unit tests weren't getting executed at all (wrong test class name)
...
* Put both resources in child classloader rather than using parent, to avoid
confusion with parentFirst not being supported by PathableClassLoader.getResources.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394603 13f79535-47bb-0310-9956-ffa450edef68
2006-04-17 03:30:38 +00:00
Simon Kitching
93cd3bf810
Add comment about getResources not respecting parentFirst
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394564 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 21:30:57 +00:00
Simon Kitching
f32ae813fc
Remove recently-added implementation of getResources. As javadoc already stated,
...
this can't be implemented because in java 1.4 getResources is final :-(. Unit
tests that care about getResources() order will just have to use parentFirst=true.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394563 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 21:30:19 +00:00
Simon Kitching
0ad40253d6
Handle case of null parent classloader
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394463 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 12:01:57 +00:00
Simon Kitching
3555fbc436
Add unit test to verify that priority of first-found config file is respected
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394460 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 11:35:22 +00:00
Simon Kitching
4cebeec80f
Update javadoc only
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394459 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 11:34:33 +00:00
Simon Kitching
77abea9d19
Fix error where getResources() would return parent items first, even when
...
parentFirst attribute was set to false.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@394457 13f79535-47bb-0310-9956-ffa450edef68
2006-04-16 11:27:11 +00:00
Simon Kitching
f336788e71
Add Serializable tests for NoOpLog.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381239 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 03:07:41 +00:00
Simon Kitching
0806aa3672
Move NoOp tests into separate directory.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@381238 13f79535-47bb-0310-9956-ffa450edef68
2006-02-27 02:59:47 +00:00