Skip to content

[CODEC-285] Upgrade JUnit to 5.6.0#39

Merged
garydgregory merged 3 commits into
apache:masterfrom
nhojpatrick:CODEC-285
Feb 14, 2022
Merged

[CODEC-285] Upgrade JUnit to 5.6.0#39
garydgregory merged 3 commits into
apache:masterfrom
nhojpatrick:CODEC-285

Conversation

@nhojpatrick

Copy link
Copy Markdown
Contributor

@coveralls

coveralls commented Mar 1, 2020

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 93.976% when pulling 7012212 on nhojpatrick:CODEC-285 into e87ac43 on apache:master.

@nhojpatrick nhojpatrick changed the title Codec 285 Codec 285 Upgrade to JUnit v5.6.0 Mar 1, 2020
@nhojpatrick nhojpatrick changed the title Codec 285 Upgrade to JUnit v5.6.0 Codec 285 upgrade to JUnit v5.6.0 Mar 1, 2020
@nhojpatrick nhojpatrick changed the title Codec 285 upgrade to JUnit v5.6.0 CODEC-285 upgrade to JUnit v5.6.0 Mar 1, 2020
@aherbert

aherbert commented Mar 2, 2020

Copy link
Copy Markdown
Contributor

When including multiple JUnit dependencies I would use the JUnit BOM in the dependency management to ensure they are kept in sync:

<dependency>
  <groupId>org.junit</groupId>
  <artifactId>junit-bom</artifactId>
  <version>X.Y.Z</version>
  <scope>import</scope>
  <type>pom</type>
</dependency>

I'd like to highlight that codec targets JDK 7. These changes to the build tools would prevent building on JDK 7. I'm fine with forcing JDK 8+ for the toolchain but Java 7 still has support until July 2022 and someone may care about this.

@garydgregory

Copy link
Copy Markdown
Member

My preference would be for Codec to update to Java 8.

@nhojpatrick

Copy link
Copy Markdown
Contributor Author

My preference would be for Codec to update to Java 8.

await another Jira/PR, I'm finding that for assertThrows i need lambdas and it would make it easier

@nhojpatrick

Copy link
Copy Markdown
Contributor Author

When including multiple JUnit dependencies I would use the JUnit BOM in the dependency management to ensure they are kept in sync:

<dependency>
  <groupId>org.junit</groupId>
  <artifactId>junit-bom</artifactId>
  <version>X.Y.Z</version>
  <scope>import</scope>
  <type>pom</type>
</dependency>

I'd like to highlight that codec targets JDK 7. These changes to the build tools would prevent building on JDK 7. I'm fine with forcing JDK 8+ for the toolchain but Java 7 still has support until July 2022 and someone may care about this.

if i can upgrade all the tests quick enough, junit-vintage-engine will be going asap, so i would prefer to keep both separately defined so i can start moving tests from vintage to jupiter, then another future to drop junit-vintage-engine. i agree long term it would be better to define to keep in sync but depending how long the discussions are, depends how long you have duplicate definitions.

@garydgregory

Copy link
Copy Markdown
Member

Git master is now on Java 8. It's confusing to have both JUnit 4 AND 5 on the classpath. It should be one or the other, and yes, it would be nice to update the whole component to JUnit 5.

@nhojpatrick

Copy link
Copy Markdown
Contributor Author

@garydgregory It can be useful as your migrating from JUnit v4 to JUnit v5, otherwise is a bing bang. Take advantage of assertAll and assertThrows as that would work in JUnit v4 code.
Eventually all the JUnit v4 tests would be updated and you can remove that dependency.

@garydgregory garydgregory merged commit 14d08da into apache:master Feb 14, 2022
@garydgregory garydgregory changed the title CODEC-285 upgrade to JUnit v5.6.0 CODEC-285 Upgrade JUnit to 5.6.0 Feb 14, 2022
@garydgregory garydgregory changed the title CODEC-285 Upgrade JUnit to 5.6.0 [CODEC-285] Upgrade JUnit to 5.6.0 Feb 14, 2022
asfgit pushed a commit that referenced this pull request Feb 17, 2022
@nhojpatrick nhojpatrick deleted the CODEC-285 branch February 19, 2022 21:09
omosteven pushed a commit to omosteven/commons-codec-lab-work that referenced this pull request Jan 8, 2025
* CODEC-284 update to hamcrest v2.2

* CODEC-285 update to junit v5.6.0

* CODEC-285 update to junit v5.8.2 via junit-bom
omosteven pushed a commit to omosteven/commons-codec-lab-work that referenced this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants