aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
AgeCommit message (Collapse)Author
2010-07-26missing svn keywords and @version: $ tagsMatthew Jason Benson
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@979392 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22Adding test cases for null checks.James W. Carman
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966821 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22Improving javadoc documentation.James W. Carman
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966812 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22Improving error checking logic and adding test cases to verify.James W. Carman
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966807 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22Backing out LANG-580James W. Carman
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966806 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22Removing ReflectiveEventSupport per author's suggestion.James W. Carman
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966769 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22Improving test coverage.James W. Carman
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966644 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22Changing eol-style to native.James W. Carman
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966601 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22Misc. event utils.James W. Carman
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966589 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22svn ps svn:eol-style nativeGary D. Gregory
src/main/java/org/apache/commons/lang3/CharSequenceUtils.java svn ps svn:eol-style native src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@966488 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20Refactoring toBoolean(String) and toBooleanObject(String) so that the latter ↵Henri Yandell
has the same optimizations. I did this by pointing the former to the latter. I had to rewrite the optimizations a bit so they didn't auto-return as the latter considers null and false to be different. I also had to add specific support for false, no and off for the same reason. LANG-633 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@965963 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18Adding Michael Wooten's event support utilities from LANG-580Henri Yandell
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@965165 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13[LANG-597] vastly expanded TypeUtilsMatthew Jason Benson
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@963845 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13Adding toCalendar method per LANG-632Henri Yandell
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@963601 13f79535-47bb-0310-9956-ffa450edef68
2010-07-03Fix cloning of array types.Joerg Schaible
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@960138 13f79535-47bb-0310-9956-ffa450edef68
2010-06-22Adding my LANG-623 unit test. It showed there was no issue, but might as ↵Henri Yandell
well keep it there in case it's reopened git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@956788 13f79535-47bb-0310-9956-ffa450edef68
2010-06-22Adding a test, and code fix, to have supplementary chars working in numeric ↵Henri Yandell
entity unescaping. See LANG-617 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@956787 13f79535-47bb-0310-9956-ffa450edef68
2010-06-22Escaping supplementary chars seems good for NumericEntityEscaper. LANG-617Henri Yandell
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@956782 13f79535-47bb-0310-9956-ffa450edef68
2010-06-22Fixing variableHenri Yandell
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@956778 13f79535-47bb-0310-9956-ffa450edef68
2010-06-22Adding containsWhitespace method per LANG-625. Code comes from the Spring ↵Henri Yandell
framework, so I've added such to the NOTICE file. License is Apache License 2.0. Unit test is original. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@956775 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28(LANG-624) SystemUtils.getJavaVersionAsFloat throws ↵Gary D. Gregory
StringIndexOutOfBoundsException on Android runtime/Dalvik VM. Oops, fix return type. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@949223 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28(LANG-624) SystemUtils.getJavaVersionAsFloat throws ↵Gary D. Gregory
StringIndexOutOfBoundsException on Android runtime/Dalvik VM. More assertions. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@949222 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28- Fix (LANG-624) SystemUtils.getJavaVersionAsFloat throws ↵Gary D. Gregory
StringIndexOutOfBoundsException on Android runtime/Dalvik VM - Refactor for unit testing. - Remove odd test code which is copy and pasted from SystemUtils, which therefore does not test anything. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@949140 13f79535-47bb-0310-9956-ffa450edef68
2010-05-21Fixing indentHenri Yandell
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@946903 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07Bug in copy and paste, now tests MutableFloat not MutableDouble for String ↵Henri Yandell
constructor git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@931457 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05Fixing javadoc to refer to CharSequence after API changeHenri Yandell
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@930815 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30LANG-609: Added AtomicInitializer class. Introduced new ↵Oliver Heger
ConcurrentInitializer interface which is now implemented by all all initializer classes. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@929189 13f79535-47bb-0310-9956-ffa450edef68
2010-03-23Adding concat(Object...) and concatWith(String, Object...) methods to ↵Henri Yandell
provide vararg'd versions of the more prominent join methods. This ties into the String.concat method. LANG-396 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@926448 13f79535-47bb-0310-9956-ffa450edef68
2010-03-21[LANG-610] Introduced ConcurrentRuntimeException and extended the exception ↵Oliver Heger
handling methods of ConcurrentUtils to support runtime exceptions, too. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@925818 13f79535-47bb-0310-9956-ffa450edef68
2010-03-20Adding Builder interface, and refactoring the builder classes and ↵Henri Yandell
BasicThreadFactory to implement this interface. Patch from Michael Wooten in LANG-601 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@925674 13f79535-47bb-0310-9956-ffa450edef68
2010-03-20Applying the copy of the HashCodeBuilder code to stop cyclic references over ↵Henri Yandell
to EqualsBuilder per LANG-606 and Oliver Sauder's patch git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@925671 13f79535-47bb-0310-9956-ffa450edef68
2010-03-19Switched test class to jUnit 4 style.Oliver Heger
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@925419 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16Tab police (and trailing spaces)Sebastian Bazley
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@923551 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16https://issues.apache.org/jira/browse/LANG-607 StringUtils methods do not ↵Gary D. Gregory
handle Unicode 2.0+ supplementary characters correctly. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@923525 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15Fix DefaultExceptionContext.addValue that overwrites information in a ↵Joerg Schaible
recursive situation (LANG-605). Allow explicit replacement of a label with the new replaceValue methods. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@923341 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14Fix defaultIsEmpty typing.Gary D. Gregory
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@922904 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14https://issues.apache.org/jira/browse/LANG-607 StringUtils.containsAny ↵Gary D. Gregory
methods incorrectly matches Unicode 2.0+ supplementary characters. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@922703 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08Change StringUtils arguments from String to CharSequence.Gary D. Gregory
Details: Working with (trunk) StringUtils (SU) I see the following emerge: - In SVN already and continuing: Change StringUtils arguments from String to CharSequence (CS). - This leads to replacing calls to String.substring(int[,int]) with calls to CharSequence.subSequence(int) - This leads to creating a CharSequenceUtils class (in SVN now, more on this new class below) and CharSequenceUtils.subSequence(CharSequence,int) to avoid changing "str.substring(start)" over and over to "str.subSequence(start, str.length())". For examples, see new versions of capitalize and uncapitalize. - We end up using a toString() on CharSequence to return a String from StringUtil when working with a CharSequence. So we have StringUtils using CharSequence inputs as much as possible instead of String, which is nice. The CharSequence method subSequence returns a CharSequence; though the Javadoc states "Returns a new CharSequence that is a subsequence of this sequence.", this does not guaranteed the return value to be the same kind of CharSequence as the receiver). Since we are after all in a class called StringUtil, calling toString() is a must. I propose that we create when possible the methods that are now StringUtils CharSequence methods into CharSequenceUtils and let StringUtil call CharSequenceUtils and then do its toString() and other String specific logic. Later we could have other CharSequence type of utils (for CharBuffer, StringBuiler, StringBuffer, etc) that use the 'primitives' from CharSequenceUtils. This means that for methods that are based solely on methods that are now in CharSequence, these can be moved to CharSequenceUtils without effort (all is* methods only call CharSequence#length() and charAt() for example and are now typed as CS, still in SU). We can leave @deprecateds method in SU as a nicety to avoid too much porting pain: First change the package to lang3 then you can 'optimize' by changing call sites from SU to CSU. As a start, I put in SVN a CharSequenceUtils (CSU) implementation for length() and subSequence(). git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@920543 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08Convert defaultIfEmpty from String to CharSequence.Gary D. Gregory
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@920187 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06More tests for length()Gary D. Gregory
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@919872 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05Per David M. Sledge's patch to LANG-599, added support to ↵Henri Yandell
ClassUtils.getClass(String) to support inner classes being separated by '.' as well as the official '$' git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@919340 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03Applying Valentin Rocher's patch from LANG-559, adding isInstanceOf and ↵Henri Yandell
isAssignableFrom methods. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918366 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02Fix raw typesSebastian Bazley
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918238 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02Tab policeSebastian Bazley
Also removed extraneous trailing spaces git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@918237 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25Adding toString test. LANG-588Henri Yandell
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916099 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25Applying Matt's patch with my modifications from LANG-588. Adds a Pair class ↵Henri Yandell
to Lang. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916098 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25Adding BasicThreadFactory class. Same as Oliver's original patch in ↵Henri Yandell
LANG-582, with an @since 3.0 added git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@916095 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10Add methods for Cloneables to ObjectUtils (LANG-576).Joerg Schaible
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@908745 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07Applying Valentin Rocher's patch to LANG-579, adding new regexp and in range ↵Henri Yandell
methods to Validate git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907382 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07[LANG-586] Clear ThreadLocal for HashCodeBuilder as wellMatthew Jason Benson
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@907373 13f79535-47bb-0310-9956-ffa450edef68