Commit Graph

4515 Commits

Author SHA1 Message Date
Benedikt Ritter 0b14928ee4
Convert tests for Validate.isAssignable overloads to @Nested test 2018-09-06 20:19:14 +02:00
Benedikt Ritter 3e58ab33b9
Convert tests for Validate.isInstanceOf overloads to @Nested test 2018-09-06 20:16:47 +02:00
Benedikt Ritter 5445f22747
Convert tests for Validate.exclusiveBetween overloads to @Nested test 2018-09-06 20:08:24 +02:00
Benedikt Ritter eabf1aaa25
Convert tests for Validate.inclusiveBetween overloads to @Nested test 2018-09-06 19:50:59 +02:00
Benedikt Ritter 6e9f406aac
Convert tests for Validate.finite overloads to @Nested test 2018-09-06 19:38:45 +02:00
Benedikt Ritter 4077b57f6d
Convert tests for Validate.notNaN overloads to @Nested test 2018-09-06 19:29:01 +02:00
Benedikt Ritter 8912be8a88
Convert tests for Validate.matchesPattern overloads to @Nested test 2018-09-06 18:14:59 +02:00
Benedikt Ritter f6f8e5dbed
Convert tests for Validate.validIndex overloads to @Nested test 2018-09-06 15:41:44 +02:00
Benedikt Ritter 74c24ad194
Move constructor test to top 2018-09-06 15:18:34 +02:00
Benedikt Ritter ad97f20202
Convert tests for Validate.noNullElements overloads to @Nested test 2018-09-06 15:17:13 +02:00
Benedikt Ritter c0779f42c7
Convert tests for Validate.notBlank overloads to @Nested test 2018-09-06 14:59:59 +02:00
Benedikt Ritter d784612d0d
Convert tests for Validate.notEmpty overloads to @Nested test 2018-09-06 14:30:29 +02:00
Benedikt Ritter d3f2a89ba2
Convert tests for Validate.notNull overloads to @Nested test 2018-09-06 10:16:26 +02:00
Benedikt Ritter 7e440785d9
Use @ParameterizedTest to iterate over available locales 2018-09-05 15:58:27 +02:00
Benedikt Ritter aad2db8b12
Convert tests for Validate.isTrue overloads to @Nested test 2018-09-05 14:26:25 +02:00
Benedikt Ritter bce28f99f3
JUnit 5 tests do not need to be public 2018-09-05 13:50:12 +02:00
Benedikt Ritter 65a7b5d3b9
LANG-1416: Add changes.xml entry 2018-09-04 16:15:27 +02:00
Benedikt Ritter 2bcf86d8af
LANG-1416: Update ValidateTest to JUnit 5 API 2018-09-04 15:08:37 +02:00
Benedikt Ritter 54f8d3c02a
LANG-1417: Add @FunctionalInterface to ThreadPredicate and ThreadGroupPredicate 2018-09-04 11:16:55 +02:00
Benedikt Ritter 3ee9cc8400
Add missing spaces 2018-08-26 18:18:10 +02:00
Benedikt Ritter bff752134b
Use build in methods for comparing numerical values 2018-08-26 17:32:02 +02:00
Benedikt Ritter 9fb4f47f35
Identical catch blocks can be combined 2018-08-26 17:25:29 +02:00
Benedikt Ritter f013141f60
Explicit type parameters can be removed 2018-08-24 15:37:52 +02:00
Benedikt Ritter 33bd834964
Convert JavaDoc license headers to block comments 2018-08-23 19:06:59 +02:00
Benedikt Ritter 88b951a227
Merge branch 'LANG-1415' 2018-08-23 18:39:39 +02:00
Benedikt Ritter b4609c81e4
LANG-1415: Update Java Language requirement to 1.8 2018-08-23 08:25:27 +02:00
Eitan Adler ce178d8e87 (fix) Add missing @Test annotation 2018-08-22 04:07:44 -07:00
Benedikt Ritter d1e72ebede
LANG-1411: Add changes.xml entry and @since tags.
This fixes #342 from GitHub. Thanks to Alexander Tsvetkov.
2018-08-20 19:01:46 +02:00
Benedikt Ritter 44e32205a6
Merge branch 'LANG-1411' 2018-08-20 18:59:21 +02:00
Rob Tompkins c2bd8be862 (changes) add 3.9 area 2018-08-20 08:54:02 -04:00
Rob Tompkins baa410493b (site) fix RELEASE-NOTES-3.8.txt java 5.0 -> 7.0 2018-08-20 08:47:32 -04:00
Alexander Tsvetkov 2a11642511 LANG-1411: Add empty checks to ObjectUtils 2018-08-17 09:02:46 +03:00
Rob Tompkins 9801e2fb9f Add RELEASE-NOTES-3.8.txt to the site 2018-08-15 21:32:37 -04:00
Rob Tompkins 6a02b5337b (fix) typographical error in JIRA number LANG-1290 -> LANG-1390 2018-08-15 21:16:41 -04:00
Rob Tompkins a1ac807dab Update release date to RC build date 2018-08-15 08:21:45 -04:00
Rob Tompkins 14e7f8db27 Preparing 3.8 2018-08-14 22:08:20 -04:00
Rob Tompkins 4f4e2b064e LANG-1408: add final to method params 2018-08-14 15:53:09 -04:00
Rob Tompkins b31877a460 LANG-1408: Rounding utilities for converting to BigDecimal 2018-08-14 15:48:19 -04:00
Rob Tompkins 08aa21f921 LANG-1408: add toDouble(BigDecimal), toDouble(BigDecimal, double) 2018-08-14 10:44:30 -04:00
Rob Tompkins 1deca6672d LANG-1402: thanks Mark 2018-08-09 15:53:50 -04:00
Rob Tompkins 0bca64d75e Merge branch 'LANG-1402' of https://github.com/MarkDacek/commons-lang 2018-08-09 15:15:38 -04:00
MarkDacek 3dbc944812 clarified Javadoc 2018-08-08 21:47:43 -04:00
Gary Gregory a36c903d4f [LANG-1405] Remove checks for java versions below the minimum supported
one. Closes #338.
2018-07-27 17:20:48 -06:00
pascalschumacher 2cc5243808 LANG-1401: Typo in JavaDoc for lastIndexOf
Add changes.xml entry (actual fix was done in 69a8ef3189)
2018-07-27 19:38:57 +02:00
pascalschumacher 0db3d81c93 Do not link to deprecated commons-text classes. 2018-07-26 23:31:40 +02:00
Gary Gregory fa66bd94e0 Prepare for release 3.8. 2018-07-16 07:58:27 -06:00
Gary Gregory 3a3cec01d5 Prepare for release 3.8. 2018-07-16 07:54:20 -06:00
Gary Gregory 0020780ddd Prepare for release 3.8. 2018-07-15 23:00:39 -06:00
MarkDacek 2cad60b6c2 removed ArrayUtils.get 2018-07-14 15:42:14 -04:00
Sebb 1cec9a6fe5 Raw Types 2018-07-13 15:05:35 +01:00
MarkDacek ec2ec77492 LANG-1402: more comment proofreading 2018-07-08 19:35:13 -04:00
MarkDacek 96f3ab8410 LANG-1402: comment proofread 2018-07-08 19:20:48 -04:00
MarkDacek 7721302ae5 LANG-1402: refactored to return default value on negative index 2018-07-08 19:11:19 -04:00
MarkDacek 625fbccaa9 LANG-1402: Fixed comment 2018-07-08 19:06:48 -04:00
MarkDacek 2521d9619f refactored to Generics and added isArrayIndexValid 2018-07-08 16:15:54 -04:00
MarkDacek 9379d0d36a LANG-1402: added get methods to ArrayUtils 2018-07-07 13:04:19 -04:00
Chas Honton f56931c176 LANG-1380: FastDateParser too strict on abbreviated short month symbols 2018-07-02 20:39:24 -07:00
Igor Curdvanovschi ae6a24dd43 replaces primitive comparison with x.compare() where x is a wrapper class of the primitive 2018-06-25 22:26:08 +02:00
Igor Curdvanovschi 4aa4291ffc removes redundant '+' sign 2018-06-25 22:05:44 +02:00
Igor Curdvanovschi 77febcfa8d flips the order of conditional expressions and 'if' statements whose conditions were negated 2018-06-25 21:21:02 +02:00
Igor Curdvanovschi b610707cd0 removes unnecessary class reference of static method calls which are declared in the same class 2018-06-20 14:28:10 +03:00
Igor Curdvanovschi 214cc7fd59 replaces 'size() == 0' and 'length() == 0' with 'isEmpty()' 2018-06-20 13:05:02 +03:00
Igor Curdvanovschi 96260205dc deletes redundant 'new' expression in constant array creation 2018-06-20 12:44:10 +03:00
Igor Curdvanovschi e767af7e7e removes unchecked exceptions declared in 'throws' clause 2018-06-20 09:03:40 +03:00
Gary Gregory 8e8b8e05e4 The the patrol. 2018-06-16 15:46:28 -06:00
pascalschumacher d9f1b897a2 Fraction#getFraction: Replace "the the" with "the" in javadoc 2018-06-16 23:12:03 +02:00
pascalschumacher 89cd538eaf LANG-1392: Methods for getting first non empty or non blank value
Improve javadoc
2018-06-08 19:34:32 +02:00
pascalschumacher 672cd146f2 LANG-1392: add changes.xml entry 2018-06-08 18:12:51 +02:00
Jeff Nelson 152e5d48ea LANG-1392: Methods for getting first non empty or non blank value (closes #325) 2018-06-08 18:10:23 +02:00
amseager 9ea0063bc9 (doc) Fix typos in classes of tuple package 2018-06-08 15:12:46 +03:00
pascalschumacher 6850d88880 Fix javadoc errors reported by Java 11. 2018-05-28 10:55:30 +02:00
pascalschumacher b933f55e58 StringUtils: fix checkstyle violation 2018-05-27 22:17:47 +02:00
Gary Gregory ae7bef343f [LANG-1238] Fix typo. 2018-05-22 10:30:29 -06:00
Gary Gregory 2bb197d3d4 [LANG-1290] StringUtils.join() with support for List<?> with
configurable start/end indices. Fix XML.
2018-05-22 10:27:24 -06:00
Gary Gregory 81ee0d062c Extract method. 2018-05-22 09:00:55 -06:00
Gary Gregory f4a262df52 [LANG-1290] StringUtils.join() with support for List<?> with
configurable start/end indices. Extract constant.
2018-05-22 08:57:50 -06:00
Gary Gregory 96cb498f9b [LANG-1290] StringUtils.join() with support for List<?> with
configurable start/end indices. Reuse constant.
2018-05-22 08:55:54 -06:00
Gary Gregory a5391bb34c Format nit. 2018-05-22 08:46:07 -06:00
Gary Gregory 9de7e1a1b4 [LANG-1290] StringUtils.join() with support for List<?> with
configurable start/end indices.
2018-05-22 08:41:35 -06:00
Jochen Schalanda 87937b2e71 [LANG-1290] StringUtils.join() with support for List<?> with
configurable start/end indices.
2018-05-22 08:40:55 -06:00
Takanobu Asanuma 09ef69c5b5 [LANG-1397] WordUtils.wrap throws StringIndexOutOfBoundsException when
wrapLength is Integer.MAX_VALUE.
2018-05-18 11:44:37 -06:00
Gary Gregory bd4066eba8 [LANG-1238] Add RegexUtils class instead of overloadinh methods in
StringUtils that take a regex to take precompiled Pattern. Use 120 chars
per line.
2018-05-17 17:18:45 -06:00
Gary Gregory 54acb6e10f [LANG-1238] Add RegexUtils class instead of overloadinh methods in
StringUtils that take a regex to take precompiled Pattern. Sort methods.
2018-05-17 17:16:08 -06:00
Gary Gregory bcc4f82a7a [LANG-1238] Add RegexUtils class instead of overloadinh methods in
StringUtils that take a regex to take precompiled Pattern. Sort methods.
2018-05-17 17:15:19 -06:00
Gary Gregory 44b6d2ead5 [LANG-1238] Add RegexUtils class instead of overloadinh methods in
StringUtils that take a regex to take precompiled Pattern. Javadoc
tweaks.
2018-05-17 17:14:36 -06:00
Oleg Chubaryov 7129c43b08 [LANG-1238] Add RegexUtils class instead of overloadinh methods in
StringUtils that take a regex to take precompiled Pattern.
2018-05-17 17:12:46 -06:00
Gary Gregory 5d4916933d Fix broken XML. 2018-05-17 15:15:28 -06:00
Gary Gregory 5fa073a5ca Typo: 'JavaDoc' -> 'Javadoc'. 2018-05-15 12:58:01 -06:00
Sebb 3fadfdd69f LANG-1396 - JsonToStringStyle does not escape string names 2018-05-10 13:08:07 +01:00
Sebb e7d16c2762 LANG-1395 - JsonToStringStyle does not escape double quote in a string
value
2018-05-09 18:28:19 +01:00
Sebb 362dd935f8 Javadoc correction to agree with code 2018-05-09 09:47:25 +01:00
Roman Golyshev 69a8ef3189 (doc) remove invalid example of `lastIndexOf` (closes #327)
- `StringUtils.lastIndexOf("aabaabaa", "ba", 2)  = -1` is invalid; moreover, example below is applied to the same arguments, but gets another (correct) result
2018-04-29 09:37:57 +02:00
Oleg Chubaryov 38cf0c68d5 [LANG-1391] Improve Javadoc for StringUtils.isAnyEmpty(null). 2018-04-26 12:07:11 -04:00
Gary Gregory 58a8f12b44 [LANG-1394] org.apache.commons.lang3.SystemUtils should not write to
System.err.
2018-04-22 10:45:43 -06:00
Gary Gregory 7c441e87cf [LANG-1393] Add API SystemUtils.String getEnvironmentVariable(final
String name, final String defaultValue). Fix @since tag.
2018-04-20 10:15:32 -06:00
Gary Gregory efba54d35f [LANG-1393] Add API SystemUtils.String getEnvironmentVariable(final
String name, final String defaultValue).
2018-04-20 08:55:32 -06:00
Gary Gregory 8e3ec1722b [LANG-1391] Improve Javadoc for StringUtils.isAnyEmpty(null). 2018-04-18 12:26:02 -06:00
Allon Mureinik e51bd89201 SerializatoinUtilsTest assertArraysEquals (closes #321)
Utilize assertArraysEquals to compare arrays instead of boiler plate
implementing it with a for loop.

This change both makes the test code cleaner and improves the output
in case of an assertion failure by showing all the differences between
the two arrays instead of stopping at the first.
2018-04-04 09:32:29 +02:00
Allon Mureinik 1415c9a2a6 SerializationUtilsTest expected exceptions
Use the expected argument of the @Test annotation instead of
boiler-plate implementing this behavior with a try-catch-fail
construct in order to clean up the code and make it more obvious to
the reader.
2018-04-04 09:32:22 +02:00
Allon Mureinik aff0fae2ec SerializationUtilsTest identity assertions
Replaced calls to assertTrue with a != condition with calls to
assertNotSame calls.
This change retains the functionality, but will produce a more
detailed error message in case the assertion fails.
It also (arguably) makes the test code more straight-forward.
2018-04-04 09:32:22 +02:00