Sebastian Bazley
|
ad72b9f2bf
|
LANG-831 FastDateParser does not handle white-space properly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390779 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-27 00:09:15 +00:00 |
Sebastian Bazley
|
192b1e1b6b
|
Allow access to parsedPattern for test purposes
Make ParseException text similar to that thrown by SimpleDateFormat
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390778 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-27 00:02:58 +00:00 |
Sebastian Bazley
|
c03f033c1c
|
Trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390722 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-26 20:44:16 +00:00 |
Sebastian Bazley
|
de3d06ff01
|
Package protection is sufficient here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390656 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-26 18:43:40 +00:00 |
Sebastian Bazley
|
e568101617
|
Wrong class name; make line stand out better
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390650 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-26 18:37:31 +00:00 |
Sebastian Bazley
|
d7af943548
|
LANG-828 FastDateParser does not handle non-Gregorian calendars properly
Use Calendar#getDisplayNames() instead of DateFormatSymbols#getEras()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390626 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-26 18:03:24 +00:00 |
Sebastian Bazley
|
e582456625
|
LANG-828 FastDateParser does not handle non-Gregorian calendars properly
Fix bug in Java 7 (Locale.toString() format has changed)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390189 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 22:12:14 +00:00 |
Sebastian Bazley
|
73ea9c43c6
|
Extract constant
Label output with test case name
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390172 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 21:46:34 +00:00 |
Sebastian Bazley
|
eedd1169bf
|
Label output with test case name
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390171 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 21:46:11 +00:00 |
Sebastian Bazley
|
3e47c0599e
|
Remove unused field
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390158 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 21:31:41 +00:00 |
Sebastian Bazley
|
6ac6f2c870
|
Unused imports
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390157 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 21:30:27 +00:00 |
Sebastian Bazley
|
005f41f136
|
One reason why the ja_JP_JP and th_TH_* locales don't work
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1390143 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 21:11:34 +00:00 |
Sebastian Bazley
|
34beef1d08
|
LANG-828 FastDateParser does not handle non-Gregorian calendars properly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389976 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 16:32:20 +00:00 |
Sebastian Bazley
|
5ffcb8d35b
|
getInstance() (Java 1.6) supports more locales
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389939 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 15:41:57 +00:00 |
Sebastian Bazley
|
6d06d0a1c0
|
Fix testParses() so it works for non-GMT timezones: the format must include hours to allow for GMT-offsets
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389869 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 14:07:47 +00:00 |
Sebastian Bazley
|
f67add0e72
|
Grammar
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389682 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 02:03:24 +00:00 |
Sebastian Bazley
|
f621ea87cc
|
Document why tests seem to fail
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389681 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 02:02:21 +00:00 |
Sebastian Bazley
|
62d5c0eecb
|
LANG-826 FastDateParser does not handle non-ASCII digits correctly
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389673 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 01:07:01 +00:00 |
Sebastian Bazley
|
bb8164bb2c
|
Make immutable private variable final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389670 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 01:01:50 +00:00 |
Sebastian Bazley
|
0120e9264d
|
More tests; era seems to cause issues, so check this separately
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389667 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-25 00:51:11 +00:00 |
Sebastian Bazley
|
246ecda5e2
|
Split test into 4 so each failure can be detected
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389484 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-24 17:01:47 +00:00 |
Sebastian Bazley
|
a81da42d90
|
LANG-799 - DateUtils#parseDate uses default locale; add Locale support
Remove inappropriate test - we don't use localized formats
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389172 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-24 00:11:23 +00:00 |
Gary D. Gregory
|
01ee7028e6
|
[LANG-825] Create StrBuilder APIs similar to String.format(String, Object...)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1389042 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-23 13:01:27 +00:00 |
Sebastian Bazley
|
72b9613ddb
|
LANG-799 - DateUtils#parseDate uses default locale; add Locale support
Show current default locale
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388824 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-22 16:07:55 +00:00 |
Sebastian Bazley
|
12a0e3bdde
|
LANG-799 - DateUtils#parseDate uses default locale; add Locale support
Parse German date with English Locale, specifying German Locale override
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388821 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-22 15:36:31 +00:00 |
Sebastian Bazley
|
79c627478f
|
LANG-799 - DateUtils#parseDate uses default locale; add Locale support
Remove unnecessary test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388818 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-22 15:27:40 +00:00 |
Sebastian Bazley
|
ebdef1b957
|
LANG-799 - DateUtils#parseDate uses default locale; add Locale support
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388806 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-22 13:22:30 +00:00 |
Sebastian Bazley
|
b219a449bb
|
LANG-799 Add tests to show ParseException when default Locale is wrong
Add Strictly tests for valid strings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388793 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-22 12:41:16 +00:00 |
Sebastian Bazley
|
37fd0adafb
|
LANG-799 Add tests to show ParseException when default Locale is wrong
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388787 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-22 12:33:25 +00:00 |
Sebastian Bazley
|
247cf8c4dc
|
JUnit4 allows use of expected exceptions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388108 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-20 16:36:57 +00:00 |
Sebastian Bazley
|
f25a596ae9
|
Override of sync. method needs to be sync.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388090 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-20 16:02:23 +00:00 |
Sebastian Bazley
|
59702fcddc
|
Fix hashCode() - t is not part of equals() check
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388088 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-20 15:59:13 +00:00 |
Sebastian Bazley
|
c96a705446
|
Implement missing hashCode() methods
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388070 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-20 15:23:20 +00:00 |
Sebastian Bazley
|
5cf4263368
|
Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388060 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-20 15:08:28 +00:00 |
Sebastian Bazley
|
d7e8948727
|
Suppress deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388058 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-20 15:03:39 +00:00 |
Sebastian Bazley
|
20295a04b9
|
Explicit conversion to Integer; save the value for use later
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388052 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-20 14:51:18 +00:00 |
Sebastian Bazley
|
7be7d80dfe
|
Document intentional drop-thru
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1388049 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-20 14:43:19 +00:00 |
Sebastian Bazley
|
bf57689e44
|
Simplify boolean tests and avoid boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387426 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-19 01:41:27 +00:00 |
Sebastian Bazley
|
abecd96359
|
Simplify boolean tests and avoid boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387424 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-19 01:29:22 +00:00 |
Sebastian Bazley
|
ca1dc33048
|
Simplify boolean tests and avoid boxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387423 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-19 01:08:04 +00:00 |
Sebastian Bazley
|
8cb5f67c58
|
Now we are using JUnit4, can use expected=throwable.class for simple failure checks
Note: not suitable for cases where an earlier statement can generate the same exception.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387417 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-19 00:31:53 +00:00 |
Matthew Jason Benson
|
77d33a665a
|
[LANG-824] Conversion of 3.x JUnit tests to 4.x; thanks to Duncan Jones
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1387361 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-18 21:07:42 +00:00 |
Sebastian Bazley
|
32b71d0913
|
LANG-810 StringUtils.join() endIndex, bugged for loop
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1384145 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-12 21:52:58 +00:00 |
Sebastian Bazley
|
c7adc7e86f
|
LANG-747 NumberUtils does not handle Long Hex numbers
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1384126 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-12 21:10:18 +00:00 |
Sebastian Bazley
|
2c6fa89aa4
|
Add some more BigDecimal tests
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1384124 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-12 21:03:18 +00:00 |
Matthew Jason Benson
|
4070a08100
|
javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1384030 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-12 16:40:49 +00:00 |
Sebastian Bazley
|
39f1521db3
|
Unnecessary ;
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381832 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-07 00:54:28 +00:00 |
Sebastian Bazley
|
c253255984
|
Exceptions not thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381831 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-07 00:49:38 +00:00 |
Sebastian Bazley
|
b474de41d2
|
Unnecessary SuppressWarnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381830 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-07 00:48:05 +00:00 |
Sebastian Bazley
|
da0e6d77f8
|
Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1381829 13f79535-47bb-0310-9956-ffa450edef68
|
2012-09-07 00:46:59 +00:00 |