wwj-go commented on issue #1610:
URL: 
https://github.com/apache/shardingsphere-elasticjob/issues/1610#issuecomment-713238444


   hi @terrymanu @TeslaCN , can we add a construct method in 
`OneOffJobBootstrap `just for test?
    ```
   @com.google.common.annotations.VisibleForTesting
   OneOffJobBootstrap() {
           jobScheduler = null;
           instanceService = null;
       }
   ```
   As you see,it is package-private.
   
   For the existing two construction methods, it hard to construct the instance 
for OneOffJobBootstrap when write a test case, because the parameter 
`CoordinatorRegistryCenter regCenter`.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to