-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 unit test for PipelineJobCenter #28879
Conversation
Hi @zhaojinchao95 Please can you guide me with these checks
I have followed all the guidelines to setup and run the project locally.There are some issues in pom.xml file which I tried to resolve but no luck! Here are some snapshots of the error I am facing A similar issue was there for YAMLEnginetest.assertMarshal but i resovled it Has anyone faced the same issue above??? Please guide. |
Hi @HarshSawarkar , about newline related errors, you could ignore it for now, we'll try to fix it. Thanks for your feedback. About GitHub CI errors:
There's an error of
These ones is caused by checkstyle, you could follow Code of Conduct:
And then format your code.
You could follow Code of Conduct:
You could copy a license header from another java file and add it into Other suggestions will be commented on PR review. |
...re/src/test/java/org/apache/shardingsphere/data/pipeline/core/job/PipelineJobCenterTest.java
Outdated
Show resolved
Hide resolved
...re/src/test/java/org/apache/shardingsphere/data/pipeline/core/job/PipelineJobCenterTest.java
Outdated
Show resolved
Hide resolved
...re/src/test/java/org/apache/shardingsphere/data/pipeline/core/job/PipelineJobCenterTest.java
Outdated
Show resolved
Hide resolved
Thanks @sandynz for your response,will look into it. |
Hey @sandynz I have made the changes to the code.Can you please review it? |
...re/src/test/java/org/apache/shardingsphere/data/pipeline/core/job/PipelineJobCenterTest.java
Outdated
Show resolved
Hide resolved
...re/src/test/java/org/apache/shardingsphere/data/pipeline/core/job/PipelineJobCenterTest.java
Outdated
Show resolved
Hide resolved
...re/src/test/java/org/apache/shardingsphere/data/pipeline/core/job/PipelineJobCenterTest.java
Outdated
Show resolved
Hide resolved
…tioned in the review comments.
Hi @sandynz I have made the changes.Can you please review it again? |
Hi @HarshSawarkar , there's checkstyle error in CI, you could follow error details in If you've installed CheckStyle plugin in IDE, then you could verify it on your local machine. |
Hey @sandynz
Thanks for your response.I am looking into it. |
Can you please review it again @sandynz ? |
...re/src/test/java/org/apache/shardingsphere/data/pipeline/core/job/PipelineJobCenterTest.java
Outdated
Show resolved
Hide resolved
Nice. Merged |
@sandynz Thanks for your support , looking forward to work on more issues. |
Fixes #28542 .
Changes proposed in this pull request:
Added unit tests for PipelineJobCenter to test its public functions to improve unit test coverage. Methods: addJob, isJobExisting, getJob, getJobItemContext, getShardingItems.
Before committing this PR, I'm sure that I have checked the following options:
./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e
.