Skip to content

Migrate Manifest, FormatVersion and LocationProvider files in Core to JUnit5#9964

Merged
nastra merged 2 commits into
apache:mainfrom
tomtongue:mig-junit5-core-manifest
Mar 18, 2024
Merged

Migrate Manifest, FormatVersion and LocationProvider files in Core to JUnit5#9964
nastra merged 2 commits into
apache:mainfrom
tomtongue:mig-junit5-core-manifest

Conversation

@tomtongue
Copy link
Copy Markdown
Contributor

@tomtongue tomtongue commented Mar 15, 2024

Migrate the following test classes in iceberg-core to JUnit 5 and AssertJ style for #9085.

Current Progress

  • TestManifestCaching.java
  • TestManifestCleanup.java
  • TestManifestEncryption.java
  • TestManifestListVersions.java
  • TestManifestReader.java (already uses JUnit5)
  • TestManifestReaderStats.java
  • TestManifestWriter.java
  • TestManifestWriterVersions.java

Additional classes:

  • TestFormatVersions.java
  • TestLocationProvider.java

@github-actions github-actions Bot added the core label Mar 15, 2024
@tomtongue tomtongue changed the title [WIP] Migrate Manifest files in Core to JUnit5 Migrate Manifest, FormatVersion and LocationProvider files in Core to JUnit5 Mar 16, 2024
@tomtongue
Copy link
Copy Markdown
Contributor Author

@nastra Migrate additional classes to JUnit5. Could you review when you have time?

assertThat(partitionFieldSummary.containsNull()).isFalse();
assertThat(partitionFieldSummary.containsNaN()).isFalse();
assertThat(
(Integer)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the casting necessary here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm, it's necessary

@nastra nastra merged commit f79fb3f into apache:main Mar 18, 2024
@tomtongue
Copy link
Copy Markdown
Contributor Author

@nastra Thanks for the quick review!

@tomtongue tomtongue deleted the mig-junit5-core-manifest branch March 18, 2024 10:10
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants