Patches to increase test coverage.
-Nathan
Index: src/test/org/apache/commons/lang/time/DateFormatUtilsTest.java
===
--- src/test/org/apache/commons/lang/time/DateFormatUtilsTest.java
(revision 230932)
+++
Some small changes to ClassUtils and StringUtils.
-Nathan
Index: src/java/org/apache/commons/lang/ClassUtils.java
===
--- src/java/org/apache/commons/lang/ClassUtils.java(revision 230932)
+++
This patch allows for FastDateFormat to be Serializable;
since the Rule objects stored as instance variables werent Serializable,
this would fail at runtime.
-Nathan
Index: src/java/org/apache/commons/lang/time/FastDateFormat.java
Is there any particular reason that the Exception classes in the lang
project don't define their own serialVersionUID fields? Exceptions are
inherently serializable and I've always considered adding serialVersionUID
fields to serializable classes a must for protecting future compatability.
The attached patch slightly increments the test coverage for
NestableDelegate. It also includes a small rework of the getMessage() method to
minimize StringBuffer creation. The application of the latter piece is up to
the discretion of the committers, obviously.
-Nathan Beyer
I also put a change in the patch file to rename the method toStringBuffer
in the JUnit to testStringBuffer, which I think was my mistake in
the first place.
-Nathan
Index: src/test/org/apache/commons/lang/text/StrBuilderTest.java
Some more test patches (and fixes). This should get the indexOf and
lastIndexOf methods.
-Nathan
Index: src/test/org/apache/commons/lang/text/StrBuilderTest.java
===
--- src/test/org/apache/commons/lang/text/StrBuilderTest.java
Here are some additional patches for the 'math' sub-package. The second
attachment is a new test file, since there wasn't a file just for testing
the Range class's base methods.
-Original Message-
From: Gary Gregory [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 30, 2005 6:58 PM
To:
Missed the other attachment.
-Original Message-
From: Nathan Beyer [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 31, 2005 4:21 PM
To: 'Jakarta Commons Developers List'
Subject: [lang][patch] Tests for math sub-package (was RE: [lang] Better
coverage for StrBuilder and StrTokenizer
I'm willing to do some JUnit building. Any other areas that need more
testing?
I presume you're working off the main trunk.
-Original Message-
From: Gary Gregory [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 30, 2005 12:18 PM
To: Jakarta Commons Developers List
Subject: [lang] Better
Attached is a patch with some additional StrBuilder tests and some small
fixes. I'll try to put some more together later.
-Original Message-
From: Nathan Beyer [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 30, 2005 3:57 PM
To: 'Jakarta Commons Developers List'
Subject: RE: [lang
11 matches
Mail list logo