Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#9073 Junit 4 tests switched to JUnit 5 #9793

Open
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

igoradulian
Copy link

  1. refactor: DataTest from Junit4 to Junit5
  2. refactor: DataTestHelpers from Junit4 to Junit5
  3. refactor: DeleteReadTests from Junit4 to Junit5
  4. refactor: RecordWrapperTest from Junit4 to Junit5
  5. refactor: TestDataFileIndexStatsFilters from Junit4 to Junit5
  6. refactor: TestGenericAppenderFactory from Junit4 to Junit5
  7. refactor: TestGenericData from Junit4 to Junit5
  8. refactor: TestGenericReaderDeletes from Junit4 to Junit5
  9. refactor: TestGenericReadProjection from Junit4 to Junit5
  10. refactor: TestGenericRecord from Junit4 to Junit5
  11. refactor: TestLocalScan from Junit4 to Junit5
  12. refactor: TestMergingMetrics from Junit4 to Junit5
  13. refactor: TestMetricsRowGroupFilter from Junit4 to Junit5
  14. refactor: TestMetricsRowGroupFilterTypes from Junit4 to Junit5
  15. refactor: TestOrcDataWriter from Junit4 to Junit5
  16. refactor: TestOrcRowIterator from Junit4 to Junit5
  17. refactor: TestParquetEncryptionWithWriteSupport from Junit4 to Junit5
  18. refactor: TestReadProjection from Junit4 to Junit5
  19. refactor: TestSingleMessageEncoding from Junit4 to Junit5
  20. refactor: TestSplitScan from Junit4 to Junit5

data/src/test/java/org/apache/iceberg/io package classes haven't been refactored because of dependency on other test classes outside of current issue scopes.

2. refactor: DataTestHelpers from Junit4 to Junit5
3. refactor: DeleteReadTests from Junit4 to Junit5
4. refactor: RecordWrapperTest from Junit4 to Junit5
5. refactor: TestDataFileIndexStatsFilters from Junit4 to Junit5
6. refactor: TestGenericAppenderFactory from Junit4 to Junit5
7. refactor: TestGenericData from Junit4 to Junit5
8. refactor: TestGenericReaderDeletes from Junit4 to Junit5
9. refactor: TestGenericReadProjection from Junit4 to Junit5
10. refactor: TestGenericRecord from Junit4 to Junit5
11. refactor: TestLocalScan from Junit4 to Junit5
12. refactor: TestMergingMetrics from Junit4 to Junit5
13. refactor: TestMetricsRowGroupFilter from Junit4 to Junit5
14. refactor: TestMetricsRowGroupFilterTypes from Junit4 to Junit5
15. refactor: TestOrcDataWriter from Junit4 to Junit5
16. refactor: TestOrcRowIterator from Junit4 to Junit5
17. refactor: TestParquetEncryptionWithWriteSupport from Junit4 to Junit5
18. refactor: TestReadProjection from Junit4 to Junit5
19. refactor: TestSingleMessageEncoding from Junit4 to Junit5
20. refactor: TestSplitScan from Junit4 to Junit5

data/src/test/java/org/apache/iceberg/io package classes haven't been
refactored because of dependency on other test classes outside of
current issue scopes.
2. fixed: RecordWrapperTest
3. fixed: DataTestHelpers
4. fixed: DeleteReadTests
5. fixed: DataTest
@nastra
Copy link
Contributor

nastra commented Mar 28, 2024

@igoradulian are you planning on updating this PR? There are a bunch of import changes that would need to be reverted. Also make sure to run ./gradlew spotlessApply locally. Can you also please rebase the PR?

2. refactor: DataTestHelpers from Junit4 to Junit5
3. refactor: DeleteReadTests from Junit4 to Junit5
4. refactor: RecordWrapperTest from Junit4 to Junit5
5. refactor: TestDataFileIndexStatsFilters from Junit4 to Junit5
6. refactor: TestGenericAppenderFactory from Junit4 to Junit5
7. refactor: TestGenericData from Junit4 to Junit5
8. refactor: TestGenericReaderDeletes from Junit4 to Junit5
9. refactor: TestGenericReadProjection from Junit4 to Junit5
10. refactor: TestGenericRecord from Junit4 to Junit5
11. refactor: TestLocalScan from Junit4 to Junit5
12. refactor: TestMergingMetrics from Junit4 to Junit5
13. refactor: TestMetricsRowGroupFilter from Junit4 to Junit5
14. refactor: TestMetricsRowGroupFilterTypes from Junit4 to Junit5
15. refactor: TestOrcDataWriter from Junit4 to Junit5
16. refactor: TestOrcRowIterator from Junit4 to Junit5
17. refactor: TestParquetEncryptionWithWriteSupport from Junit4 to Junit5
18. refactor: TestReadProjection from Junit4 to Junit5
19. refactor: TestSingleMessageEncoding from Junit4 to Junit5
20. refactor: TestSplitScan from Junit4 to Junit5

data/src/test/java/org/apache/iceberg/io package classes haven't been
refactored because of dependency on other test classes outside of
current issue scopes.
2. fixed: RecordWrapperTest
3. fixed: DataTestHelpers
4. fixed: DeleteReadTests
5. fixed: DataTest
Copy link
Contributor

@nastra nastra left a comment

Choose a reason for hiding this comment

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

@igoradulian there are a bunch of unnecessary changes on the PR. Also all assertions should be using AssertJ.

@igoradulian please let me know if you're planning to address this. We'd like to convert tests to JUnit5 in the iceberg-data module rather sooner than later

@igoradulian
Copy link
Author

@nastra yes, I'm gonna made changes you proposed. In majority changes I switched Junit4 to Junit5 not AssertJ because it was said to switch to Junit5. Anyway, thank you for your comments I'm going to make changes and update PR asap.

@nastra
Copy link
Contributor

nastra commented Apr 3, 2024

@nastra yes, I'm gonna made changes you proposed. In majority changes I switched Junit4 to Junit5 not AssertJ because it was said to switch to Junit5. Anyway, thank you for your comments I'm going to make changes and update PR asap.

Thanks, that sounds great. Also see https://iceberg.apache.org/contribute/#assertj

igoradulian and others added 13 commits April 30, 2024 09:07
…tor.java

Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
…ReadProjection.java

Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
…Projection.java

Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
…dProjection.java

Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
…ageEncoding.java

Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
…atsFilters.java

Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
…atsFilters.java

Co-authored-by: Eduard Tudenhoefner <etudenhoefner@gmail.com>
@igoradulian
Copy link
Author

@nastra please review last updates

@igoradulian
Copy link
Author

@nastra please review last changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants