Skip to content

textFixtures refactoring - #39

Merged
n1k0sv merged 1 commit into
transifex:develfrom
Petrakeas:petrakeas/test_fixtures
Sep 23, 2022
Merged

n1k0sv merged 1 commit into
transifex:develfrom
Petrakeas:petrakeas/test_fixtures

Conversation

@Petrakeas

Copy link
Copy Markdown
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)
@n1k0sv
n1k0sv 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.

2 participants