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

Create Inherited TestDatabaseAPI class with protected methods to test the private curl methods #1042

Open
nedvedba opened this issue Nov 6, 2024 · 1 comment
Assignees
Labels
Type: Test Related to unit or integration testing

Comments

@nedvedba
Copy link
Collaborator

nedvedba commented Nov 6, 2024

The DatabaseAPI class is currently untestable because the methods are private, so a new class must be created to inherit DatabaseAPI to be able to call those private methods.

@nedvedba nedvedba added the Type: Test Related to unit or integration testing label Nov 6, 2024
@nedvedba nedvedba self-assigned this Nov 6, 2024
@nedvedba nedvedba changed the title Create Inherited TestGlobusAPI class with protected methods to test the private curl methods Create Inherited TestDatabaseAPI class with protected methods to test the private curl methods Nov 7, 2024
@JoshuaSBrown
Copy link
Collaborator

Acceptance

A Database test class is created in the DatabaseAPI unit test that inherits from DatabaseAPI class, the unit test runs and the protected methods are directly callable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Test Related to unit or integration testing
Projects
None yet
Development

No branches or pull requests

2 participants