Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanwenjun committed Jun 4, 2022
1 parent bd6eaae commit e44776e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.apache.dolphinscheduler.dao.mapper.ProjectMapper;
import org.apache.dolphinscheduler.dao.mapper.ScheduleMapper;
import org.apache.dolphinscheduler.scheduler.api.SchedulerApi;
import org.apache.dolphinscheduler.scheduler.quartz.QuartzScheduler;
import org.apache.dolphinscheduler.service.process.ProcessService;

import java.util.ArrayList;
Expand All @@ -53,7 +54,6 @@
* scheduler service test
*/
@RunWith(PowerMockRunner.class)
@PrepareForTest(SchedulerApi.class)
public class SchedulerServiceTest {

@InjectMocks
Expand All @@ -80,7 +80,7 @@ public class SchedulerServiceTest {
@Mock
private ProjectServiceImpl projectService;

@InjectMocks
@Mock
private SchedulerApi schedulerApi;

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import org.apache.dolphinscheduler.scheduler.api.SchedulerApi;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

Expand Down

0 comments on commit e44776e

Please sign in to comment.