Commit Graph

419 Commits

Author SHA1 Message Date
Gary Gregory abc2681037 Update tests from junit-jupiter 5.4.0 to 5.4.2. 2019-04-12 08:37:15 -04:00
Rob Tompkins 1889cacfaf Prepare 3.9 RC2 2019-04-10 21:17:56 -04:00
Rob Tompkins 838d7ebefb Merge branch 'master' of github.com:apache/commons-lang into 3.9 2019-04-10 15:29:23 -04:00
Rob Tompkins 20fdb8e63e jacoco: 0.8.2 -> 0.8.3, surefire: 2.22.1 -> 3.0.0-M3 2019-04-10 14:01:00 -04:00
Rob Tompkins 8b37888515 (update) a few more version upgrades 3.8.1 -> 3.9 2019-04-09 14:08:56 -04:00
Tompkins 4f4e9786a8 Preparing the codebase for 3.9 2019-04-09 13:12:01 -04:00
Gary Gregory c20dcdadd4 Oops, remove dup property. 2019-03-26 20:24:32 -04:00
Gary Gregory 064b9d8a2f Update Apache Commons Parent from 47 to 48. 2019-03-26 20:22:19 -04:00
pascalschumacher 508ddd1295 Update checkstyle to version 8.17 2019-02-09 13:54:01 +01:00
pascalschumacher c127a7266a Update EasyMock to version 4.0.2 2019-02-09 13:46:58 +01:00
pascalschumacher b5ed6c6180 Update Hamcrest to version 2.1 2019-02-09 13:43:15 +01:00
pascalschumacher c6bb13cb99 Remove dependency management for JUnit (since the update to JUnit 5.4.0 we only have a single JUnit test dependency). 2019-02-09 13:31:34 +01:00
Allon Mureinik 2273b6e44e Upgrade JUnit depedency to 5.4.0 (closes #402)
Upgrade the JUnit dependency to the latest available 5.4.0.

Note that JUnit simplified its artifacts, and now it contains a
single, simple org.junit:junit-jupiter artifact.
2019-02-08 19:53:20 +01:00
pascalschumacher 17bbe77262 Skip javadoc on Java 11 to workaround https://bugs.openjdk.java.net/browse/JDK-8212233 which causes javadoc to fail with "Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/7/docs/api/ are in the unnamed module." 2019-02-08 19:50:44 +01:00
pascalschumacher f7c62b29c9 Update spotbugs-maven-plugin to version 3.1.10 2019-01-05 22:51:18 +01:00
pascalschumacher e0a5a4b5b6 Update to JaCoCo 0.8.2 with works Java 11+. 2018-12-20 14:48:34 +01:00
pascalschumacher 37ba8d3981 Update to JUnit version 5.3.2 2018-12-02 14:11:09 +01:00
pascalschumacher 60b8f18e46 Update Spotbugs Maven Plugin to version 3.1.8 2018-11-20 21:38:15 +01:00
pascalschumacher a668a47981 Update JUnit Pioneer to version 0.3.0 2018-11-02 21:05:14 +01:00
pascalschumacher 5ccbfeb86f Update maven-spotbugs-plugin to version 3.1.7 2018-11-02 21:01:51 +01:00
Gary Gregory 0fcd4ce92a Update EasyMock from 3.6 to 4.0 to fix testing on Java 11. 2018-10-28 09:11:14 -06:00
pascalschumacher 97ade3f6e3 Use surefire plugin version from parent POM. 2018-10-26 19:51:07 +02:00
pascalschumacher 46ea7e5e96 Update checkstyle to version 8.13 2018-10-13 20:22:23 +02:00
Allon Mureinik e99b0dde8e Update tests to JUnit Jupiter (closes #375)
This patch finalizes the upgrade of commons-lang's tests to use JUnit
Jupiter and remove the Vintage Engine dependency entirely.

While most of these changes are drop-in replacements with no functional
benefit, there are some non-obvious changes worth mentioning.

Unlike org.junit.Assert.assertEquals(double, double, double),
org.junit.jupiter.api.Assertions.assertEquals(double, double, double)
does not support deltas of zero, only strictly positive deltas.
This issue will be addressed in JUnit Jupiter 5.4 (see
https://github.com/junit-team/junit5/pull/1613 for details). In the
meanwhile, assertTrue(expected==actual) was used, and TODO comments were
placed in the code to refactor it to assertEquals once JUnit 5.4 is
available.

Unlike org.junit.Test, org.junit.jupiter.api.Test does not have an
"expected" argument. Instead, an explicit call to
org.junit.jupiter.api.Assertions.assertThrows is used.

Unlike org.junit.Test, org.junit.jupiter.api.Test does not have a
"timeout" argument either. Instead, an explicit call to
org.junit.jupiter.api.Assertions.assertTimeoutPreemptively is used.

JUnit Jupiter also no longer has the concept of Rules. Usages of the
SystemDefaultsSwitch rule and its accompanying annotates were replaced
with the @DefaultLocale annotation that Benedikt Ritter contributed to
JUnit Pioneer, the semi-official JUnit extension project.
Following the removal of their usages, the SystemDefaults annotation,
the SystemDefaultsSwitch rule and the SystemDefaultsSwitchTest class
that tests them had no more use, and they were removed entirely.

It's also worth noting this is a minimal patch for migrating the
package's tests to Jupiter. There are several tests that can be made
more elegant with Jupiter's new features, but that work is left for
subsequent patches.
2018-10-11 22:28:38 +02:00
Allon Mureinik ca2e59c513 Update time tests to JUnit Jupiter
Upgrade the tests in the time package to use JUnit Jupiter as
part of the effort to remove the dependency on the Vintage Engine.

While most of these changes are drop-in replacements with no functional
benefit, there are some non-obvious changes worth mentioning.

Unlike org.junit.Test, org.junit.jupiter.api.Test does not have an
"expected" argument. Instead, an explicit call to
org.junit.jupiter.api.Assertions.assertThrows is used.

JUnit Jupiter no longer has a concept of runners. Tests previously run
with the org.junit.runners.Parameterized runner were rewritten to use
@ParameterizedTest and a @MethodSource.

JUnit Jupiter also no longer has the concept of Rules. Usages of the
SystemDefaultsSwitch rule and its accompanying annotates were replaced
with the @DefaultLocale and @DefaultTimezone annotations that
Benedikt Ritter contributed to JUnit Pioneer, the semi-official JUnit
extension project.

It's also worth noting this is a minimal patch for migrating the
package's tests to Jupiter. There are several tests that can be made
more elegant with Jupiter's new features, but that work is left for
subsequent patches.
2018-10-10 19:09:33 +03:00
Rob Tompkins 77f875110a Tagging commons-lang3-3.8.1 from RC1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEtuc9hOpPzEcWYIclP6rSzV7LsxQFAlumrW8ACgkQP6rSzV7L
 sxQgcA//dWX1C1n526Z34UgI5OSGxE+pT3L6Imny33gDRbEdUuBAtX7nsU04OEpB
 YGZuwAvaZ6CVgcEha43T0t6qD5mMb+btNTauqY116PRhEqSIDLJBgapZNcKLj1gA
 sR1SXY87VCQHcWO/tjUtL2yC+Js++KwowFX1If9MpByV46PqTr7e/FKrzYB2ocsD
 BaDCgQTcJWoLb6XHXlsSUrGO92AeDS8O2oa+6eIDstH0qzC4vKKFhpGGGRhI0SrP
 99rwzpBfNljxe3oVDIU+JIjAuNvepb1+WrtOTbwu2GEz0PMS4KkvB9cvBeyGJeM+
 cQXccZ34VU2Ony9TNDUfJEwdeoWbZWw8ib4ijThhufIPmiOU2QpHhhcQ2K8iK8CJ
 lCnDLQDtjZHpo5308nEW4EuGi31uzRZePDNubrQcHpqjdmVcrs93jOJuK8K8zIpn
 DG3ly1E6fItVILFIhUzXyFJ20qPtSmhQmjNPuX3/4b3Pmx1MDc/b0u3mxDjc/ADq
 OWFcT5f2N//StnR58ZSDqw4vdOo0l5EyhSr70nMnMfk3p1XsbU1IOb3lNZouXjWr
 T6Ckwyz2CWo+wAS9U72EvRzaim/SQz+2E8sscu1gLwE067YFmY9lPGGFpFliJO6Y
 NwAkKq2uR+aemvWok5GmwDPastv7U59gJDJCLZ7SrTlHNpIyh6E=
 =Hha5
 -----END PGP SIGNATURE-----

Updates for 3.8.1 release
2018-09-22 17:31:24 -04:00
Rob Tompkins eb5b11a25c Prepare 3.8.1 release 2018-09-19 11:09:49 -04:00
Rob Tompkins ae9b31285e LANG-1419: Restore BundleSymbolicName for OSGi 2018-09-19 10:51:19 -04:00
Benedikt Ritter 910f5427b3
Update to latest JUnit version 2018-09-11 21:06:39 +02:00
Benedikt Ritter 6dc3a6db11
Merge branch 'spotbugs' 2018-09-06 22:05:54 +02:00
Benedikt Ritter 7e440785d9
Use @ParameterizedTest to iterate over available locales 2018-09-05 15:58:27 +02:00
Benedikt Ritter 83b472b754
LANG-1416: Update to JUnit 5.3.0 2018-09-04 15:08:37 +02:00
Benedikt Ritter 3287f3100f
LANG-1416: Use latest Apache Maven Surefire Plugin release 2018-09-04 15:08:37 +02:00
pascalschumacher bb20855b5c Skip SpotBugs on Java 11 2018-08-28 19:11:31 +02:00
pascalschumacher 82fd2516d6 Replace FindBugs with SpotBugs 2018-08-28 19:00:26 +02:00
Benedikt Ritter b4609c81e4
LANG-1415: Update Java Language requirement to 1.8 2018-08-23 08:25:27 +02:00
Rob Tompkins 8f88799d47 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/commons-lang 2018-08-19 13:05:09 -04:00
Rob Tompkins ec464c9b2b Update pom.xml for release of commons-lang3-3.8 2018-08-19 13:04:45 -04:00
Benedikt Ritter 30fed5ecb0
Update maven-pmd-plugin to latest version 2018-08-16 16:25:43 +02:00
Rob Tompkins 328e74448c get japicmp working 2018-08-14 22:42:58 -04:00
Rob Tompkins 14e7f8db27 Preparing 3.8 2018-08-14 22:08:20 -04:00
Rob Tompkins c3de2d69ce org.easymock:easymock:3.5.1 -> 3.6 2018-08-14 21:28:13 -04:00
Rob Tompkins cf406e5629 jmh.version 1.19 -> 1.21 2018-08-14 21:27:42 -04:00
pascalschumacher c241b096d3 Update to commons-parent version 47 2018-07-03 19:17:52 +02:00
pascalschumacher 6996686b6b Travis: Switch from Cobertura to Jacoco, because Cobertura does not work on Java 9+. Cobertura-Maven-Plugin fails on Java 10+ even if execution is skipped.
Skip Jacoco on Java 11, because Jacoco does not support it yet (see: https://github.com/jacoco/jacoco/issues/663).
2018-05-15 22:03:20 +02:00
pascalschumacher 393ad2db73 Update commons-parent to version 46 2018-05-05 13:41:30 +02:00
Gary Gregory c53c2cbc11 Update commons-parent from 43 to 45. 2018-03-29 09:13:54 -06:00
Gary Gregory a098f04106 Better description. 2018-03-29 09:01:12 -06:00
pascalschumacher 0820c4c895 Use java9 profile on JDK 9 and later 2018-03-02 17:28:19 +01:00
Gary Gregory 415eb9ebb7 Update Maven Checstyle plugin from 2.17 to 3.0.0. 2018-02-23 19:13:01 -07:00
Gary Gregory 284de66aaf Update Maven PMD plugin from 3.8 to 3.9.0. 2018-02-23 16:10:43 -07:00
pascalschumacher 30dcb8de48 pom.xml: use commons.module.name property as Automatic-Module-Name 2018-01-07 18:13:07 +01:00
pascalschumacher 066665ea65 pom.xml: remove outdated and no longer correct comment about Automatic-Module-Name being implemented in Parent POM 2018-01-07 18:01:46 +01:00
pascalschumacher b2939a7e30 Update to easymock version 3.5.1 2018-01-07 11:06:27 +01:00
pascalschumacher d1b149fe12 Update to commons-parent version 43 2018-01-07 11:03:42 +01:00
Sebb 721f3ef4aa Document other usage 2017-11-14 15:19:37 +00:00
Gary Gregory fdb91d4fd5 Update version to 3.8-SNAPSHOT. 2017-11-08 08:49:34 -07:00
Gary Gregory 425d8085cf Prepare for releasing 3.7. 2017-11-04 12:09:44 -06:00
Gary Gregory 641367d98c Prepare for releasing 3.7. 2017-11-04 11:55:23 -06:00
Gary Gregory 95286e641b Update benchmark tests from JMH 1.17.4 to 1.19. 2017-11-04 11:54:47 -06:00
Gary Gregory 49e185294e maven-pmd-plugin 3.7 -> 3.8. 2017-11-04 11:29:40 -06:00
pascalschumacher 66226ec1c2 remove unused bcel test dependency 2017-10-14 15:27:27 +02:00
pascalschumacher 2a8187fdf9 update easymock test dependency to version 3.5 2017-10-14 15:25:05 +02:00
pascalschumacher 274dbfe81f pom.xml: remove jacoco configuration from reporting section, so that c56b87d6ef is completely reverted 2017-10-11 18:54:14 +02:00
Chas Honton c56b87d6ef LANG-1354: FieldUtils should ignore any synthetic fields 2017-10-10 20:52:50 -07:00
pascalschumacher cc748d35e5 travis: remove travis profile from pom and use travis-cobertura profile commons-parent 2017-10-01 16:19:50 +02:00
Oliver Siegmar 67830fe249 make checkstyle config more portable (no maven coupling) 2017-09-09 08:51:49 +02:00
pascalschumacher 05d9518038 add oraclejdk9 to travis configuration (closes #280)
maven java9 profile:
- use maven-javadoc-plugin version 3.0.0-M1, because versions below 3.0.0 do not work on java 9
- skip maven-coveralls-plugin, because version 4.3.0 does not work on java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112
2017-07-28 19:31:18 +02:00
Amey Jadiye 5f0d812757 Replaced test with verify. Closes #72. 2017-06-23 15:11:01 -07:00
Benedikt Ritter 9615bc5019
Bump to next development version 2017-06-12 13:36:57 +02:00
Benedikt Ritter 09043bfa6f
Update version numbers for release 3.6 2017-06-09 11:38:15 +02:00
Benedikt Ritter 35288d109e
Update website for 3.6 release 2017-06-09 11:38:15 +02:00
Benedikt Ritter 000d22973c
Update download page in preparation for 3.6 release 2017-06-09 11:38:14 +02:00
Benedikt Ritter b48043d18e
Fix duplicated maven-jar-plugin configuration 2017-06-08 10:00:12 +02:00
Benedikt Ritter 8ec7e02e75
LANG-1338: Add Automatic-Module-Name MANIFEST entry for Java 9
compatibility.

This change duplicates adds some maven-jar-plugin configuration pom.
After we have implemented a solution for this in parent pom, this
confgiruation should be removed.
2017-06-08 08:14:32 +02:00
Rob Tompkins 551101299d (chore) adding commons.module.name to pom 2017-05-27 10:25:01 -04:00
pascalschumacher 340f5f70e9 pom.xml: add goals executed on travis as defaultGoal to make it easy to run the same checks locally 2017-05-04 21:27:40 +02:00
pascalschumacher d61090ab64 LANG-1256: Add JMH maven dependencies.
move checkstyle exclusion of JMH generated classes from pom.xml to checkstyle-suppressions.xml
2017-04-28 21:03:56 +02:00
pascalschumacher b7cc7a1c7b LANG-1256: Add JMH maven dependencies.
fix checkstyle exclusion on older maven versions
2017-04-28 19:09:14 +02:00
pascalschumacher 331d2f21f9 LANG-1256: Add JMH maven dependencies.
do not run checksytle on classes generated by JMH

remove unnecessary maven-compiler-plugin configuration from benchmark profile
2017-04-28 18:34:29 +02:00
Artem Barger 111fd3f6ee LANG-1256: Add JMH maven dependencies. (closes #182)
In order to provide patch for LANG-1110, required dependency on JMH lib.
Current commit add benchmark profile and ability to run JMH based benchmark by
executing "mvn test -P benchmark" command, moreover it's also possible to
specify exact benchmark name by running "mvn test -P benchmark
-Dbenchmark=benchmark.full.class.name".
2017-04-28 17:30:46 +02:00
Allon Mureinik 9ceaaeb656 Add FindBugs to Travis CI (closes #262)
This patch copies the FindBugs configuration in pom.xml from the
reporting section to the build section so findbugs can be used as part
of the build process (by using the maven goal findbugs:check).

It then adds this goal to the Travis CI build so that FindBugs
becomes part of the CI, and new patches would be prevented from
introducing new FindBugs errors.
2017-04-19 18:25:04 +02:00
Benedikt Ritter 63dcba41a9
Update to latest PMD version 2017-04-17 13:13:40 +02:00
Allon Mureinik 27d3d40f7c Apply checkstyle checks to test files (closes #257)
This patch enforces the code style defined by the checkstyle checks
to the test files too.

In the cases where it would just add robustness and not improve the
code's readability and maintainability (specifically - the javadoc
checks), those checks are explicitly suppressed.
2017-03-19 10:10:50 +01:00
Rob Tompkins 0e1b328e56 LANG-1300: Crediting Mark for work 2017-03-15 08:46:13 -04:00
pascalschumacher 6700d58fd6 update commons-parent to version 42 2017-03-14 22:05:53 +01:00
Allon Mureinik 4fb393be2c Add checkstyle to Travis CI (closes #254)
Currently, checkstyle is only run as part of the reporting phase, and
it's up to the developer to check the report manually.

This patch adds the checkstyle configuration to the build plugins so
it can be used to check the code (as opposed to just generate a
report of the failures) and adds it to Travis CI's configuration so
every new patch will be automatically checked against it.
2017-03-12 17:57:23 +01:00
Allon Mureinik c121f03d5c Upgrade maven-checkstyle-plugin to 2.17
This patch upgrades maven-checkstyle-plugin to the latest available
version, 2.17.

This is done in order to consume a fix for checkstyle wrongfully
reporting an error if the @return javadoc tag was used in an
annotation type, as it is in Guarded (line 36).

Note that checkstyle has removed the RedundantThrows check (see
discussion at https://github.com/checkstyle/checkstyle/issues/473),
so it was removed from the project's checkstyle.xml configuration.
2017-03-12 17:41:50 +01:00
pascalschumacher 72476ff462 LANG-1265: Build failures when building with Java 9 EA (closes #244)
Fix build on Java 9 Build 157 by adding a java-9 maven profile. This is activated by default on Java 9 and opens up java.base classes for reflection, which makes all unit tests pass.
2017-02-28 23:37:26 +01:00
pascalschumacher 7cf5e01c2a remove commons-io test dependency 2016-12-20 10:01:04 +01:00
pascalschumacher 6cfee3d0e5 move apache-rat configuration from site to plugin-management sections, so that it also applies when "mvn apache-rat:check" is run
thanks to Karl Heinz Marbaise for the patch
2016-12-18 15:48:26 +01:00
Gary Gregory def3c4672b [LANG-1291] Provide annotations to document thread safety. 2016-11-27 15:41:23 -08:00
Gary Gregory 480949c375 No need to duplicate group Id. 2016-11-27 15:12:28 -08:00
Gary Gregory 792e955673 coveralls-maven-plugin 3.1.0 -> 4.3.0. 2016-11-16 15:30:25 -08:00
Gary Gregory 7e8df326f4 [LANG-1279] Update Java requirement from Java 6 to 7. 2016-10-23 10:48:40 -07:00
Benedikt Ritter 6129bdbc69
Bump to next development version 2016-10-17 08:56:33 +02:00
Benedikt Ritter 36f98d87b2
Update version numbers for Commons Lang release 3.5 2016-10-13 21:01:09 +02:00
Benedikt Ritter 58300e6432
Add rat ignore for .htaccess file 2016-10-13 20:52:18 +02:00
Benedikt Ritter 42fda334b2
Update pom.xml in preparation for 3.5 release 2016-10-13 20:50:54 +02:00
Benedikt Ritter 43e5f99828
Override clirr version from parent pom to be able to build site on Java 8 2016-10-02 14:36:53 +02:00