-
Notifications
You must be signed in to change notification settings - Fork 744
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
[GOBBLIN-2160] added some unit tests for gobblin temporal module #4059
base: master
Are you sure you want to change the base?
[GOBBLIN-2160] added some unit tests for gobblin temporal module #4059
Conversation
d81af91
to
a75214d
Compare
a75214d
to
3950d10
Compare
@VisibleForTesting | ||
public static List<Integer> consolidateSubTreeGrandChildren(final int numSubTreesPerSubTree, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that you added @VisibleForTesting
and changed modifier to public for testing this method. However, this change is not required if we follow the same package structure for the test class and we can access protected methods without exposing them publicly. We can revert the modifier change and place the test class in the same package instead.
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.gobblin.temporal.ddm.workflow.impl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update package to org.apache.gobblin.temporal.util.nesting.workflow
} | ||
|
||
@Test(expectedExceptions = AssertionError.class) | ||
public void testPerformWorkload_LaunchesChildWorkflows() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you've covered some scenarios, like handling an empty WorkSpan and testing the pause duration. However, the current tests don't fully capture the functionality(creating child workflows, subtrees handling, result calculation and edge cases) of the performWorkload method. It would be useful to add overall coverage for a method when we are adding tests for it, this ensures that the tests fulfill the original intent of thoroughly validating the behavior of missing tests. This would also help avoid the need for additional work on this method again later, unless we are making changes to it.
Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
Description
Added Unit tests for JobStateUtils and AbstractNestingExecWorkflowImpl classes in Gobblin-temporal module
Tests
Commits