Commit Graph

3865 Commits

Author SHA1 Message Date
Gary Gregory 5588a9bdee Clean up tests.
- Simple syntax for array creation.
- Use better Collection APIs.
- Make test fixture a static class.
- Use number cache when possible.
2022-03-04 08:56:42 -05:00
Gary Gregory 505722c303 Use final. 2022-03-04 08:49:14 -05:00
John Patrick 2a2a534c02
COLLECTIONS-777 JUnit v5 (#284)
JUnit v5 assertThrows TransformerUtilsTest

JUnit v5 assertThrows DynamicHasherBuilderTest

JUnit v5 assertThrows DynamicHasherTest

JUnit v5 assertThrows IndexFilterTest

JUnit v5 assertThrows BooleanComparatorTest

JUnit v5 assertThrows FixedOrderComparatorTest

JUnit v5 assertThrows ComparatorUtilsTest

JUnit v5 assertThrows FactoryUtilsTest

JUnit v5 assertThrows MultiSetUtilsTest

JUnit v5 assertThrows QueueUtilsTest
2022-03-04 08:44:25 -05:00
John Patrick 4d06b47d55
COLLECTIONS-777 JUnit v5 (#283)
JUnit v5 assertThrows PredicatedBagTest

JUnit v5 assertThrows PredicatedSortedBagTest

JUnit v5 assertThrows TreeBagTest

JUnit v5 assertThrows AbstractBagTest

JUnit v5 assertThrows AbstractBidiMapTest

JUnit v5 assertThrows AbstractOrderedBidiMapTest

JUnit v5 assertThrows PredicateUtilsTest

JUnit v5 assertThrows MultiMapUtilsTest

JUnit v5 assertThrows EnumerationUtilsTest

JUnit v5 assertThrows ArrayStackTest
2022-03-04 08:42:38 -05:00
John Patrick e113297085
COLLECTIONS-777 JUnit v5 (#282)
JUnit v5 assertThrows SetOperationsTest

JUnit v5 assertThrows CompositeCollectionTest

JUnit v5 assertThrows MultiValueMapTest

JUnit v5 assertThrows UnmodifiableMapTest

JUnit v5 assertThrows UnmodifiableOrderedMapTest

JUnit v5 assertThrows UnmodifiableSortedMapTest

JUnit v5 assertThrows CatchAndRethrowClosureTest

JUnit v5 assertThrows PredicatedCollectionTest

JUnit v5 assertThrows ComparatorChainTest

JUnit v5 assertThrows ArrayListIteratorTest

JUnit v5 assertThrows ListIteratorWrapper2Test

JUnit v5 assertThrows ObjectArrayListIteratorTest

JUnit v5 assertThrows PeekingIteratorTest

JUnit v5 assertThrows DefaultKeyValueTest

JUnit v5 assertThrows MultiKeyTest
2022-03-04 08:40:31 -05:00
John Patrick f4c041ba94
COLLECTIONS-777 JUnit v5 (#281)
JUnit v5 assertThrows for PatriciaTrieTest.java

JUnit v5 assertThrows UnmodifiableBagTest

JUnit v5 assertThrows UnmodifiableSortedBagTest

JUnit v5 assertThrows UnmodifiableBidiMapTest

JUnit v5 assertThrows UnmodifiableOrderedBidiMapTest

JUnit v5 assertThrows UnmodifiableSortedBidiMapTest

JUnit v5 assertThrows TrieUtilsTest

JUnit v5 assertThrows AbstractArrayListTest

JUnit v5 assertThrows UnmodifiableTrieTest

JUnit v5 assertThrows UnmodifiableSetTest

JUnit v5 assertThrows CompositeMapTest

JUnit v5 assertThrows SetUniqueListTest

JUnit v5 assertThrows UnmodifiableMapEntryTest

JUnit v5 assertThrows DefaultMapEntryTest

JUnit v5 assertThrows AbstractMapEntryTest

JUnit v5 assertThrows UnmodifiableOrderedMapIteratorTest

JUnit v5 assertThrows UnmodifiableMapIteratorTest

JUnit v5 assertThrows UnmodifiableIteratorTest

JUnit v5 assertThrows PermutationIteratorTest

JUnit v5 assertThrows ObjectArrayIteratorTest

JUnit v5 assertThrows NodeListIteratorTest

JUnit v5 assertThrows IteratorEnumerationTest

JUnit v5 assertThrows FilterIteratorTest

JUnit v5 assertThrows ArrayIteratorTest

JUnit v5 assertThrows AbstractOrderedMapIteratorTest

JUnit v5 assertThrows UnmodifiableCollectionTest

JUnit v5 assertThrows UnmodifiableBoundedCollectionTest

JUnit v5 assertThrows IndexedCollectionTest
2022-03-04 08:36:21 -05:00
Gary Gregory 4e0fb4f809 Merge branch 'master' of https://ggregory@gitbox.apache.org/repos/asf/commons-collections 2022-03-04 08:33:15 -05:00
Gary Gregory 5997d80100 Bump actions/checkout from 2 to 3 #285 2022-03-04 08:33:10 -05:00
dependabot[bot] 2e0cc9dee3
Bump actions/checkout from 2 to 3 (#285)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-04 08:32:20 -05:00
Gary Gregory 5b003939f6 Bump maven-pmd-plugin from 3.15.0 to 3.16.0 #286 2022-03-04 08:32:06 -05:00
dependabot[bot] 72f51a601d
Bump maven-pmd-plugin from 3.15.0 to 3.16.0 (#286)
Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.15.0 to 3.16.0.
- [Release notes](https://github.com/apache/maven-pmd-plugin/releases)
- [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.15.0...maven-pmd-plugin-3.16.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-pmd-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-04 08:30:18 -05:00
John Patrick 83acfd3cb9
JUnit v5 Imports (#280)
* JUnit v5 Assertions

* JUnit v5 don't wildcard Assertions
2022-03-01 12:59:48 -05:00
Arturo Bernal de46d49f4e Replace explicit type with <>. 2022-02-20 12:00:13 +13:00
Alex Herbert b228aea7f7 Test GH actions workflow for Codecov coverage 2022-02-13 21:30:40 +00:00
Alex Herbert 5f30d93b32 Update coveralls action
Rename to Coveralls.

Remove invalid reference to matrix.experimental.
2022-02-13 21:00:32 +00:00
Alex Herbert 240b638e61 Add test coveralls GitHub workflow
Copies the current build workflow for a single JDK and adds the
coveralls GitHub action.
2022-02-13 20:55:34 +00:00
Gary Gregory 4c2a9744ae Remove unused import. 2022-02-13 12:24:42 -05:00
Gary Gregory 8ea386b864 Inline Collections.sort(). 2022-02-13 11:25:56 -05:00
Gary Gregory 4984c96072 Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-collections.git 2022-02-13 11:20:06 -05:00
Gary Gregory 1151960efa Add singleton ObjectToStringComparator.INSTANCE. 2022-02-13 11:18:30 -05:00
Alex Herbert c68c4b2c72 Change clirr to japicmp for binary compatibility check 2022-02-12 09:22:27 +00:00
Alex Herbert 56d15a469d Use default goal in github action
Effectively changes from 'package' to 'verify' with additional
checkstyle and javadoc checks.
2022-02-12 09:14:06 +00:00
Gary Gregory 6a3dabbee0 Bump checkstyle from 9.2.1 to 9.3 #277 2022-02-04 07:53:51 -05:00
dependabot[bot] 108ff1b3f3
Bump checkstyle from 9.2.1 to 9.3 (#277)
Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 9.2.1 to 9.3.
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-9.2.1...checkstyle-9.3)

---
updated-dependencies:
- dependency-name: com.puppycrawl.tools:checkstyle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 07:52:41 -05:00
Gary Gregory 8abaaf8c06 Update NOTICE file for 2022. 2022-02-04 07:21:55 -05:00
Gary Gregory 14048e3a91 Add CodeQL GitHub workflow. 2022-02-03 06:55:58 -05:00
Gary Gregory c859f52839 Run dependabot once a week. 2021-12-29 11:57:26 -05:00
Gary Gregory e465030561 Bump checkstyle from 9.2 to 9.2.1 #271. 2021-12-27 08:41:02 -05:00
dependabot[bot] 799820816a
Bump checkstyle from 9.2 to 9.2.1 (#271)
Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 9.2 to 9.2.1.
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-9.2...checkstyle-9.2.1)

---
updated-dependencies:
- dependency-name: com.puppycrawl.tools:checkstyle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-27 08:37:08 -05:00
Gary Gregory bab8c9fd3f Drop obsolete Travis build. 2021-12-23 08:47:16 -05:00
dependabot[bot] 3ba6407e22 Bump checkstyle from 9.1 to 9.2
Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 9.1 to 9.2.
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-9.1...checkstyle-9.2)

---
updated-dependencies:
- dependency-name: com.puppycrawl.tools:checkstyle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-02 09:53:04 +13:00
dependabot[bot] 371313a2e4 Bump commons.junit.version from 5.8.1 to 5.8.2
Bumps `commons.junit.version` from 5.8.1 to 5.8.2.

Updates `junit-jupiter-api` from 5.8.1 to 5.8.2
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.8.1...r5.8.2)

Updates `junit-jupiter-engine` from 5.8.1 to 5.8.2
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.8.1...r5.8.2)

Updates `junit-vintage-engine` from 5.8.1 to 5.8.2
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.8.1...r5.8.2)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter-api
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: org.junit.jupiter:junit-jupiter-engine
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: org.junit.vintage:junit-vintage-engine
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 10:09:45 +13:00
dependabot[bot] 8873f3801c Bump actions/cache from 2.1.6 to 2.1.7
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 13:12:28 +13:00
dependabot[bot] 7ab4e4fe99 Bump actions/checkout from 2.3.5 to 2.4.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.5...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-04 13:48:34 +13:00
dependabot[bot] 49d56376eb Bump checkstyle from 9.0.1 to 9.1
Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 9.0.1 to 9.1.
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-9.0.1...checkstyle-9.1)

---
updated-dependencies:
- dependency-name: com.puppycrawl.tools:checkstyle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-03 16:11:27 +13:00
dependabot[bot] 8a992cd90b Bump actions/checkout from 2.3.4 to 2.3.5
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.4...v2.3.5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-19 12:59:47 +13:00
Bruno P. Kinoshita ccc8f421b1 Fix checkstyle, remove unused imports 2021-10-09 21:54:30 +13:00
Bruno P. Kinoshita cee61e4b76 Merge branch 'pr-233'
This closes #233
2021-10-09 21:49:56 +13:00
Bruno P. Kinoshita ff0fabd09c [COLLECTIONS-793] Changelog 2021-10-09 21:49:48 +13:00
Arturo Bernal 71aec3377d [COLLECTIONS-793] Simplify Assertion. 2021-10-09 21:49:48 +13:00
Arturo Bernal 699abc8114 Fix javadoc 2021-10-09 21:42:14 +13:00
Arturo Bernal 01413dc53b Remove unnecessary Casting 2021-10-09 21:41:40 +13:00
Bruno P. Kinoshita 5b0f22a750 Merge branch 'pr-250'
This closes #250
2021-10-09 14:53:22 +13:00
Bruno P. Kinoshita e6f72fe910 [COLLECTIONS-799] Changelog 2021-10-09 14:53:13 +13:00
Stefano Cordio cbc5db5540 [COLLECTIONS-799]: Prevent modifications by pollFirst and pollLast 2021-10-09 14:52:20 +13:00
Bruno P. Kinoshita dfafc5d723 Merge branch 'pr-255'
This closes #255
2021-10-09 14:48:52 +13:00
Bruno P. Kinoshita 3fa1f0cee8 [COLLECTIONS-796] changelog 2021-10-09 14:48:32 +13:00
Clemens Kurz ffd2a02d85 [COLLECTIONS-796] SetUniqueList.createSetBasedOnList doesn't add list elements to return value
- Request in Comment: https://issues.apache.org/jira/browse/COLLECTIONS-796?focusedCommentId=17419058&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17419058
- Adressed typo in method name.
- Method is public therefore it must be backwards compatible.
- The method 'umodifiableListIterator' was not removed but annotated with @Deprecated and calls the actual method 'unmodifiableListIterator'.
- Test was simplified, with appropriate assert-method-call
2021-10-09 14:43:29 +13:00
dependabot[bot] 14291172fe Bump checkstyle from 9.0 to 9.0.1
Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 9.0 to 9.0.1.
- [Release notes](https://github.com/checkstyle/checkstyle/releases)
- [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-9.0...checkstyle-9.0.1)

---
updated-dependencies:
- dependency-name: com.puppycrawl.tools:checkstyle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-09 14:39:49 +13:00
dependabot[bot] 23f2d363c5
Bump commons.junit.version from 5.8.0 to 5.8.1 (#254)
Bumps `commons.junit.version` from 5.8.0 to 5.8.1.

Updates `junit-jupiter-api` from 5.8.0 to 5.8.1
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.8.0...r5.8.1)

Updates `junit-jupiter-engine` from 5.8.0 to 5.8.1
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.8.0...r5.8.1)

Updates `junit-vintage-engine` from 5.8.0 to 5.8.1
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.8.0...r5.8.1)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter-api
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: org.junit.jupiter:junit-jupiter-engine
  dependency-type: direct:development
  update-type: version-update:semver-patch
- dependency-name: org.junit.vintage:junit-vintage-engine
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-28 12:36:47 -04:00