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

textFixtures refactoring #39

Merged
merged 1 commit into from
Sep 23, 2022

Conversation

Petrakeas
Copy link
Contributor

common module has testFixtures enabled. Test code that was dubplicated between modules, is now placed in the following classes:

  • CDSMockHelper
  • TempDirHelper
  • StringTestData

txsdk and cli modules rely on the common's testFixtures. Code was deleted and references were refactored.

We used to set the following flag in the javadoc documentation: links 'https://docs.oracle.com/javase/7/docs/api/' This no longer works and the sitation with Java and its documentation is currently a mess. Luckily, 'https://d.android.com/reference' provides documentation for Java classes, so we can safely delete it.

Gradle configuration has been modernized:

  • we now make use of settings.gradle
  • we declare application and library plugins

Gradle has been updated to 7.4
AGP has been updated to 7.3

The following class renames occured:

  • TranslationMapStorageFilesTest -> TranslationMapStorageTest
  • TranslationMapStorageAndroidAssetsTest -> TranslationMapStorageAndroidTest
  • TxDiskTranslationsProviderTest -> TxDiskTranslationsProviderAssetsTest (under androidTest)
  • TxDiskTranslationsProviderTest -> TxDiskTranslationsProviderFilesTest (under test)

common module has testFixtures enabled. Test code that was
dubplicated between modules, is now placed in the following classes:

* CDSMockHelper
* TempDirHelper
* StringTestData

txsdk and cli modules rely on the common's testFixtures. Code
was deleted and references were refactored.

We used to set the following flag in the javadoc documentation:
`links 'https://docs.oracle.com/javase/7/docs/api/'`
This no longer works and the sitation with Java and its documentation
is currently a mess. Luckily,  'https://d.android.com/reference' provides
documentation for Java classes, so we can safely delete it.

Gradle configuration has been modernized:
* we now make use of settings.gradle
* we declare application and library plugins

Gradle has been updated to 7.4
AGP has been updated to 7.3

The following class renames occured:
* TranslationMapStorageFilesTest -> TranslationMapStorageTest
* TranslationMapStorageAndroidAssetsTest  -> TranslationMapStorageAndroidTest
* TxDiskTranslationsProviderTest  -> TxDiskTranslationsProviderAssetsTest (under androidTest)
* TxDiskTranslationsProviderTest  -> TxDiskTranslationsProviderFilesTest  (under test)
@nbasili nbasili merged commit 7d7120d into transifex:devel Sep 23, 2022
@wyngarde wyngarde mentioned this pull request Sep 27, 2022
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.

None yet

2 participants