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

Add-Service-Tests #300

Open
wants to merge 1 commit into
base: upgrade-jdk11
Choose a base branch
from

Conversation

Agaba-derrick
Copy link

The ServicesTest class verifies the functionality of the Services class, responsible for initializing core components within the ODK application. Key tests include:

  • Initialization on Creation: Confirms that the Services class initializes as expected upon creation.
  • APK Display Name Retrieval: Verifies that the correct application name resource ID is returned using getApkDisplayNameResourceId().
  • Singleton Access: Ensures the singleton instance _please_dont_use_getInstance() provides a non-null Context, indicating the singleton is set up correctly.

The custom ODKServiceTestRule manages setup and teardown operations before and after each test, maintaining a clean testing environment for service-level tests. This suite provides essential coverage for service initialization and singleton pattern checks.
376005768-b815c0cc-b4e2-4964-ad84-cadaffa49368
Fixing odk-x/tool-suite-X#505
@wbrunette @Stryker101 @r0ssing

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.

1 participant