You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/12/08 03:28:16 UTC

[GitHub] [incubator-dolphinscheduler] whitelowrie commented on issue #4175: 跑单元测试的时候报错

whitelowrie commented on issue #4175:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/4175#issuecomment-740350496


   Please use english!!!
   and you can write the test like this before you configured correctly
   
   `@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);
       }
   }`
   


----------------------------------------------------------------
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:
users@infra.apache.org