Package org.qzerver.model.service.job.management.dto

Examples of org.qzerver.model.service.job.management.dto.ScheduleJobActionParameters


        Assert.assertFalse(scheduleExecutionResult.isSucceed());
    }

    @Test
    public void testExceptionAutomaticAllExecution() throws Exception {
        ScheduleJobActionParameters actionParameters = new ScheduleJobActionParameters();
        actionParameters.setIdentifier("action.type");
        actionParameters.setDefinition("action.data".getBytes());

        ScheduleJobCreateParameters jobParameters = new ScheduleJobCreateParameters();
        jobParameters.setName("Test Job");
        jobParameters.setDescription("Nothing to do");
        jobParameters.setTimezone("UTC");
View Full Code Here


        Assert.assertFalse(scheduleExecutionResult.isSucceed());
    }

    @Test
    public void testExceptionAutomaticAllExecution() throws Exception {
        ScheduleJobActionParameters actionParameters = new ScheduleJobActionParameters();
        actionParameters.setIdentifier("action.type");
        actionParameters.setDefinition("action.data".getBytes());

        ScheduleJobCreateParameters jobParameters = new ScheduleJobCreateParameters();
        jobParameters.setName("Test Job");
        jobParameters.setDescription("Nothing to do");
        jobParameters.setTimezone("UTC");
View Full Code Here

        Assert.assertNotNull(currentScheduleAction);
        Assert.assertEquals("action.type", currentScheduleAction.getIdentifier());
        Assert.assertTrue(Arrays.equals("action.data".getBytes(), currentScheduleAction.getDefinition()));
        Assert.assertFalse(currentScheduleAction.isArchived());

        ScheduleJobActionParameters actionParameters = new ScheduleJobActionParameters();
        actionParameters.setIdentifier("action.type.2");
        actionParameters.setDefinition("action.data.2".getBytes());

        ScheduleJob scheduleJobModified = scheduleJobManagementService.changeJobAction(scheduleJob.getId(), actionParameters);
        Assert.assertNotNull(scheduleJobModified);

        ScheduleAction newScheduleAction = scheduleJobModified.getAction();
View Full Code Here

TOP

Related Classes of org.qzerver.model.service.job.management.dto.ScheduleJobActionParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.