commit | d65b9d2bed09847ef28b9ceb30c9f8a96e0c12fe | [log] [tgz] |
---|---|---|
author | Allon Mureinik <amureini@redhat.com> | Sat Sep 30 15:32:54 2017 +0300 |
committer | pascalschumacher <pascalschumacher@gmx.net> | Sun Oct 01 14:33:21 2017 +0200 |
tree | b3b0b22bf6872bddabf0fa186691264f5b1e611d | |
parent | ae862ae116f2056421ab8d6e997e7b64a95828a5 [diff] |
Improve tests for CharUtils illegal usages (closes #293) CharUtilsTest has several instances of the following pattern: try { CharUtils.someMethod("illegal input"); } catch (final IllegalArgumentException ex) {} This pattern is not very useful for testing, as the test would pass whether an IllegalArgumentException is thrown or not. This patch enhances the test by explicitly failing it if the exception is not thrown: try { CharUtils.someMethod("illegal input"); fail("An IllegalArgumentException should have been thrown"); } catch (final IllegalArgumentException ex) {}
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.
More information can be found on the homepage. The JavaDoc can be browsed. Questions related to the usage of Apache Commons Lang should be posted to the user mailing list.
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.6</version> </dependency>
We accept PRs 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:
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.
Code is under the Apache Licence v2.
You like Apache Commons Lang? Then donate back to the ASF to support the development.