Commit Graph

243 Commits

Author SHA1 Message Date
Gary Gregory 29459edcdf Label next release as 1.9.0. 2021-02-22 21:34:56 -05:00
dependabot[bot] 7b0a977d97
Bump junit-jupiter from 5.7.0 to 5.7.1 (#133)
Bumps [junit-jupiter](https://github.com/junit-team/junit5) from 5.7.0 to 5.7.1.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.7.0...r5.7.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-22 20:26:12 -05:00
dependabot[bot] 2642afb3b3
Bump mockito-core from 3.7.0 to 3.7.7 (#129)
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.7.0 to 3.7.7.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.7.0...v3.7.7)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-19 09:09:27 -05:00
dependabot[bot] 8772fb628a
Bump maven-checkstyle-plugin from 3.1.1 to 3.1.2 (#131)
Bumps [maven-checkstyle-plugin](https://github.com/apache/maven-checkstyle-plugin) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/apache/maven-checkstyle-plugin/releases)
- [Commits](https://github.com/apache/maven-checkstyle-plugin/compare/maven-checkstyle-plugin-3.1.1...maven-checkstyle-plugin-3.1.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-19 09:07:37 -05:00
dependabot[bot] 569f853c46
Bump mockito-core from 3.6.28 to 3.7.0 (#128)
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.6.28 to 3.7.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.6.28...v3.7.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-05 09:53:44 -05:00
dependabot[bot] e62009b555
Bump mockito-core from 3.5.11 to 3.6.28 (#123)
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.5.11 to 3.6.28.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.5.11...v3.6.28)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-12 11:53:35 -05:00
dependabot[bot] 2cd237ea49
Bump maven-pmd-plugin from 3.13.0 to 3.14.0 (#122)
Bumps [maven-pmd-plugin](https://github.com/apache/maven-pmd-plugin) from 3.13.0 to 3.14.0.
- [Release notes](https://github.com/apache/maven-pmd-plugin/releases)
- [Commits](https://github.com/apache/maven-pmd-plugin/compare/maven-pmd-plugin-3.13.0...maven-pmd-plugin-3.14.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-12 11:51:23 -05:00
dependabot[bot] d86e50fd53
Bump commons-io from 2.7 to 2.8.0 (#108)
Bumps commons-io from 2.7 to 2.8.0.

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 11:30:10 -04:00
dependabot[bot] e035f13bef
Bump junit-jupiter from 5.6.2 to 5.7.0 (#109)
Bumps [junit-jupiter](https://github.com/junit-team/junit5) from 5.6.2 to 5.7.0.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.6.2...r5.7.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 11:28:22 -04:00
dependabot[bot] 9cc3131879
Bump mockito-core from 3.5.10 to 3.5.11 (#110)
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.5.10 to 3.5.11.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.5.10...v3.5.11)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-18 11:26:43 -04:00
dependabot[bot] 447a5ccabf
Bump mockito-core from 3.4.6 to 3.5.10 (#107)
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.4.6 to 3.5.10.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.4.6...v3.5.10)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-08 11:47:51 -04:00
dependabot[bot] 3fc2fcb3de
Bump commons-parent from 51 to 52 (#89)
Bumps commons-parent from 51 to 52.

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-05 11:00:58 -04:00
dependabot[bot] cedaf4212a
Bump mockito-core from 3.4.4 to 3.4.6 (#88)
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.4.4 to 3.4.6.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.4.4...v3.4.6)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-30 17:34:44 -04:00
dependabot[bot] 9db2472db8
Bump super-csv from 2.2.1 to 2.4.0 (#86)
Bumps [super-csv](https://github.com/super-csv/super-csv) from 2.2.1 to 2.4.0.
- [Release notes](https://github.com/super-csv/super-csv/releases)
- [Commits](https://github.com/super-csv/super-csv/compare/v2.2.1...v2.4.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-24 09:33:26 -04:00
dependabot[bot] e08f7cb972
Bump mockito-core from 3.3.3 to 3.4.4 (#87)
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.3.3 to 3.4.4.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.3.3...v3.4.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-24 09:32:13 -04:00
dependabot[bot] 622186e2fe
Bump opencsv from 3.1 to 5.2 (#81)
Bumps opencsv from 3.1 to 5.2.

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-23 17:01:08 -04:00
Gary Gregory 6863d7d576 Update maven-checkstyle-plugin from 3.0.0 to 3.1.1. 2020-07-23 16:59:32 -04:00
dependabot[bot] 4c812047a0
Bump junit-jupiter from 5.6.1 to 5.6.2 (#84)
Bumps [junit-jupiter](https://github.com/junit-team/junit5) from 5.6.1 to 5.6.2.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.6.1...r5.6.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-23 16:54:23 -04:00
dependabot[bot] 8717a32194
Bump commons-parent from 50 to 51 (#80)
Bumps commons-parent from 50 to 51.

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-23 16:50:21 -04:00
Gary Gregory c5bd4324fd Update tests from Apache Commons Lang 3.10 to 3.11. 2020-07-16 13:20:34 -04:00
Sebb e5213d1e42 Canonical location for Year 2020-06-18 12:13:14 +01:00
Gary Gregory 66243ac2a9 Update tests from commons-io:commons-io 2.6 to 2.7. 2020-05-28 08:11:29 -04:00
Gary Gregory 914f2c4155 Move resources to component specific folder. 2020-05-28 08:10:18 -04:00
Gary Gregory 56b626f0d9 Move site files to their propper locations (not in the production
folder.)
2020-04-10 17:28:08 -04:00
Gary Gregory ae936c0e73 Move site files to their propper locations (not in the production
folder.)
2020-04-10 17:26:10 -04:00
Gary Gregory 2906565c56 Reset to RC1. 2020-04-10 15:23:16 -04:00
Gary Gregory cab61c53f1 Update tests from Apache Commons Lang 3.9 to 3.10. 2020-03-27 14:09:05 -04:00
Chen 5591444148
Fix the old test case record.getComment() will never be null (#62)
* The old test case record.getComment() will never be null and if record.getComment() be null the test code misplace the null test.
Add a new test file that record.getComment() will be null and test record.getComment() no null before using

* keep the caching of "record.getComment()"
2020-03-24 21:04:14 -04:00
Gary Gregory 72edc56862 org.junit.jupiter:junit-jupiter from 5.6.0 to 5.6.1. 2020-03-23 11:12:35 -04:00
Gary Gregory c2f46df203 [CSV-184] Make the method CSVRecord#putIn(Map) public. 2020-03-23 09:39:19 -04:00
Gary Gregory ea7ffd7b8e Rename pmd.version to commons.pmd.version to match commons-parent. 2020-03-17 11:14:14 -04:00
Gary Gregory c255268aa1 maven-pmd-plugin 3.12.0 -> 3.13.0. 2020-03-17 11:06:17 -04:00
Gary Gregory 2dd3606127 org.mockito:mockito-core 3.2.4 -> 3.3.3. 2020-03-17 10:56:03 -04:00
Chen 953a6de722
fix isssue csv-259 (#61)
* fix isssue csv-259

* add testcase for CSV259

* exclude csv259 test file

* organize the imports
2020-03-17 10:51:01 -04:00
Amey Jadiye d83dab4b09
replace findbugs with spotbugs (#56) 2020-02-12 16:14:28 -05:00
Gary Gregory 0ab1318a44 Bump to next development version 2020-02-06 16:01:56 -05:00
Gary Gregory 660f7c9f85 Merge branch 'master' into release 2020-02-01 20:04:04 -05:00
Gary Gregory df9da1056b Prepare for 1.8-RC2.
- Remove package private code with Java 8 equivalent
java.util.Objects.requirteNonNull().
- Checkstyle fixes.
- Use final.
- Remove unused import.
2020-02-01 20:01:01 -05:00
Gary Gregory b7fea5546b [CSV-248] CSVRecord is not Serializable.
Exclude binary test fixtures from Apache RAT consideration.
2020-01-22 10:28:05 -05:00
Gary Gregory 07101a99bc [CSV-248] CSVRecord is not Serializable.
Update JUnit from 5.5.2 to 5.6.0.
2020-01-20 18:36:02 -05:00
Gary Gregory c1c8b32809 Update POM version numbers for Apache Commons CSV release 1.8 2020-01-18 11:55:06 -05:00
Gary Gregory 7d86ab0ced Prepare for the next release. 2020-01-18 11:33:16 -05:00
Chen 8ecd4657ef Fix typos in site and test #53 2019-12-30 08:43:55 -05:00
Gary Gregory abc65e41a6 Update tests from Mockito 3.2.0 to 3.2.4. 2019-12-20 22:54:11 -05:00
Gary Gregory 7cc7b596ca Update tests from Mockito 3.1.0 to 3.2.0. 2019-12-12 11:04:02 -05:00
Gary Gregory b0c544e911 Update tests from Hamcrest 2.1 to 2.2. 2019-12-12 11:02:35 -05:00
Gary Gregory 33bb4f0e01 Update tests from H2 1.4.199 to 1.4.200. 2019-12-12 10:59:50 -05:00
Allon Murienik e2f0a4d8a8 CSV-252: Migration to JUnit Jupiter (#49)
* CSV-252 Stop using junit.framework.TestCase

junit.framework.TestCase is a class from JUnit 3, and while it is not
officially deprecated, it's discouraged to use it.

This patch removes the single use of
junit.framework.TestCase#assertNull, and replaces it with the
standard, recommended, org.junit.Assert#assertNull.

* CSV-252 Standardize org.junit.Assert imports

Code in the project uses org.junit.Assert's methods in two ways:
1. By statically importing them
2. By importing the class and using its methods

Option 1 seems to be the de-facto standard, with just a handful of
cases using Option 2.
This patch standardizes these cases to also use static imports thus
making the code look more uniform, and easier to maintain.

* CSV-252 Upgrade Mockito to 3.1.0

Upgrade the Mockito dependency to the latest available version, 3.1.0,
in order to facilitate an upgrade to JUnit Jupiter.

* CSV-252 JUnit Jupiter upgrade

This patch upgrades the project's testing framework from JUnit 4.12
to the modern JUnit Jupiter 5.5.4.

Since JUnit 5 Jupiter is not backwards compatible to JUnit 4.x (or
even JUnit Vintage), this patch is a bit large, even though a lot of
the changes are merely cosmetic (such as changing the argument order,
see details below). In order to make the reviewer's task as easy as
possible, this PR does not presume to use JUnit Jupiter's best
practices and all its new functionality, but only to migrate the
existing tests with as little change as possible. Following patches
may want to improve the tests by using some of JUnit Jupiter's new
features.

This patch includes the following changes:

1. Maven dependency changes:
 a. junit:junit was replaced with org.junit.jupiter:junit-jupiter.
 b. org.hamcrest:hamcrest was introduced as an explicit dependency,
    since the project uses Hamcrest, and JUnit Jupiter does not
    bundle Hamcrest, unlike JUnit 4.x.

2. Annotations:
 a. org.junit.jupiter.api.Test was used as a drop in replacement for
    org.juit.Test without arguments. See 3.ii. for handling of @Test
    annotations with an "expected" argument.
 b. org.junit.jupiter.api.BeforeEach was used as an drop in
    replacement for org.junit.Before.
 c. org.junit.jupiter.api.BeforeAll was used as an drop in
    replacement for org.junit.BeforeClass.
 d. org.junit.jupiter.api.Disabled was used as a drop in replacement
    for org.junit.Ignore.

3. Assertions:
 a. org.junit.jupiter.api.Assertions' methods were used as drop in
    replacements for org.junit.Assert's methods with the same name in
    the simple case of an assertion without a message. In the case of
    an assertion with a message, org.junit.jupiter.api.Assertions'
    methods were used, but the argument order was changed - Assert's
    methods take the message as the first argument, while Assertions'
    methods take the message as the last argument.
 b. org.junit.jupiter.api.Assertions#assertThrows was used to assert
    that a specific exception was throws instead of an org.junit.Test
    annotation with an expected argument. This technique has a couple
    of side bonuses. First, it makes the tests slightly stricter, as
    now they can assert the exception was thrown from a specific line
    and prevent false positives where the test's "set-up" code
    accidentally threw that exception. Second, it clarifies that some
    of the test code is unreachable (as a previous line already
    throws an exception), and can safely be removed in order to clean
    up the test. The throws clauses of these methods were cleaned up
    from exceptions that can no longer be thrown in order to avoid
    compilation warnings.
 c. org.hamcrest.MatcherAssert#assertThat was used as a drop in
    replacement for org.junit.Assert#assertThat.

4. Specific Changes:
 a. CSVFileParserTest was rewritten with JUnit Jupiter's
    org.junit.jupiter.api.ParameterizedTest. Unlike JUnit 4's
    org.junit.runners.Parameterized, it cannot be used to inject
    arguments to a test's construct, and so the test can't be
    stateful. Instead, it was rewritten so every test receives the
    file as a parameter, and opens a reader on it itself. As a side
    bonus, this design makes it easier to close the reader and avoid
    leaving open file descriptors like the original test did.
2019-10-05 14:59:58 -04:00
Gary Gregory 2f1ac70815 Update properties for the next release. 2019-09-09 20:41:53 -04:00
Gary Gregory 09f4bed945 Revert change to commons.componentid. 2019-09-09 20:41:07 -04:00