Search in sources :

Example 1 with TestWrongJob

use of com.dangdang.ddframe.job.fixture.job.TestWrongJob in project elastic-job by dangdangdotcom.

the class WrongJobExecutorTest method setUp.

@Before
public void setUp() throws NoSuchFieldException {
    when(jobFacade.loadJobRootConfiguration(true)).thenReturn(new TestSimpleJobConfiguration());
    wrongSimpleJobExecutor = new SimpleJobExecutor(new TestWrongJob(), jobFacade);
}
Also used : TestSimpleJobConfiguration(com.dangdang.ddframe.job.fixture.config.TestSimpleJobConfiguration) TestWrongJob(com.dangdang.ddframe.job.fixture.job.TestWrongJob) Before(org.junit.Before)

Aggregations

TestSimpleJobConfiguration (com.dangdang.ddframe.job.fixture.config.TestSimpleJobConfiguration)1 TestWrongJob (com.dangdang.ddframe.job.fixture.job.TestWrongJob)1 Before (org.junit.Before)1