CalvinKirs commented on issue #4175:
URL:
https://github.com/apache/incubator-dolphinscheduler/issues/4175#issuecomment-740351475
> Please use english!!!
> and you can write the test like this before you configured correctly
>
> ```java
> @RunWith(SpringJUnit4ClassRunner.class)
> @ContextConfiguration(classes={DependencyConfig.class,
SpringApplicationContext.class, SpringZKServer.class,
> NettyExecutorManager.class, ExecutorDispatcher.class,
ZookeeperRegistryCenter.class, TaskPriorityQueueConsumer.class,
> ZookeeperNodeManager.class, ZookeeperCachedOperator.class,
ZookeeperConfig.class, MasterConfig.class})
> public class MyTest {
>
> @Autowired
> private ProcessService processService = null;
>
> @Test
> public void test01(){
> System.out.println(processService);
> }
> }
> ```
We hope to adopt the mock form, because ut should remain relatively
independent. Are you interested in refactoring this UT?
----------------------------------------------------------------
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]