Skip to content

[BI-1443] - Refactoring BrAPIDAOUtil to process pagination to fetch a…#204

Merged
timparsons merged 6 commits intodevelopfrom
feature/BI-1443
Aug 24, 2022
Merged

[BI-1443] - Refactoring BrAPIDAOUtil to process pagination to fetch a…#204
timparsons merged 6 commits intodevelopfrom
feature/BI-1443

Conversation

@dmeidlin
Copy link
Contributor

@dmeidlin dmeidlin commented Aug 10, 2022

Description

Refactor BRAPIDAOUtil
BrAPIDAOUtil was refactored to enable dependency injection instead of static methods.
BrapiGermplasmServiceUnitTest was fixed and updated to use mock of refactored BrAPIDAOUtil.

Dependencies

bi-web, latest develop branch

Testing

import germplasm without error; and
run BrAPIGermplasmServiceUnitTest without error

Checklist:

  • I have performed a self-review of my own code
  • I have tested my code and ensured it meets the acceptance criteria of the story
  • I have tested that my code works with both the brapi-java-server and BreedBase
  • I have create/modified unit tests to cover this change
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to documentation
  • I have run TAF:109

@dmeidlin dmeidlin requested review from a team, davedrp and nickpalladino and removed request for a team August 19, 2022 20:19
@dmeidlin dmeidlin marked this pull request as ready for review August 19, 2022 20:22
@timparsons timparsons requested review from HMS17 and removed request for nickpalladino August 22, 2022 15:35
assertEquals("Germplasm A", resultTable.get(0, 1), "Incorrect data exported");
assertEquals("2", resultTable.get(0, 6), "Incorrect data exported");
assertEquals(2, resultTable.rowCount(), "Wrong number of rows were exported");
// assertEquals("Germplasm A", resultTable.get(0, 1), "Incorrect data exported");
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be ideal if possible for these assertions to be uncommented so the test checks for correct data exported and not just number of rows.

Copy link
Member

Choose a reason for hiding this comment

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

Done. Tests are running now

@davedrp
Copy link
Contributor

davedrp commented Aug 24, 2022

Dev-test passed

@timparsons timparsons merged commit 5a7e38e into develop Aug 24, 2022
@timparsons timparsons deleted the feature/BI-1443 branch August 24, 2022 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants