Apache Commons Lang
Go to file
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
src Update time tests to JUnit Jupiter 2018-10-10 19:09:33 +03:00
.gitattributes Fixed line ending issues once and for all 2016-01-17 20:15:51 +01:00
.gitignore Ignore eclipse-cs generated file 2016-12-22 15:46:08 +00:00
.travis.yml Travis: Also build with openjdk-ea, but allow openjdk-ea builds to fail. 2018-10-06 11:36:04 +02:00
CONTRIBUTING.md Prepare for release 3.8. 2018-07-15 23:00:39 -06:00
LICENSE.txt Add blank line 2004-02-19 21:23:04 +00:00
NOTICE.txt Prepare for release 3.8. 2018-07-15 23:00:39 -06:00
README.md Fix dead links in README.md (closes #359) 2018-10-06 09:59:44 +02:00
RELEASE-NOTES.txt (fix) RELEASE-NOTES.txt on master to look like 3.8.1 dist 2018-09-22 17:45:29 -04:00
checkstyle-suppressions.xml Prevent redundant modifiers 2017-06-06 16:11:45 +02:00
checkstyle.xml make checkstyle config more portable (no maven coupling) 2017-09-09 08:51:49 +02:00
pom.xml Update time tests to JUnit Jupiter 2018-10-10 19:09:33 +03:00
spotbugs-exclude-filter.xml Replace FindBugs with SpotBugs 2018-08-28 19:00:26 +02:00

README.md

Apache Commons Lang

Build Status Coverage Status Maven Central Javadocs

Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang.

Documentation

More information can be found on the Apache Commons Lang homepage. The Javadoc can be browsed. Questions related to the usage of Apache Commons Lang should be posted to the user mailing list.

Where can I get the latest release?

You can download source and binaries from our download page.

Alternatively you can pull it from the central Maven repositories:

<dependency>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-lang3</artifactId>
  <version>3.8.1</version>
</dependency>

Contributing

We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:

  • No tabs! Please use spaces for indentation.
  • Respect the code style.
  • Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
  • Provide JUnit tests for your changes and make sure your changes don't break any existing tests by running mvn clean test.

If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.

License

This code is under the Apache Licence v2.

See the NOTICE.txt file for required notices and attributions.

Donations

You like Apache Commons Lang? Then donate back to the ASF to support the development.

Additional Resources