Package com.day.cq.workflow.exec

Examples of com.day.cq.workflow.exec.WorkItem


        when(jcrFactory.getResourceResolver(session)).thenReturn(resourceResolver);
    }

    @Test
    public void test_with_null_rendition_arg_is_noop() throws Exception {
        WorkItem workItem = mock(WorkItem.class);
        MetaDataMap metaData = new SimpleMetaDataMap();

        process.execute(workItem, workflowSession, metaData);

        verifyZeroInteractions(harness);
View Full Code Here


        verifyZeroInteractions(harness);
    }

    @Test
    public void test_with_blank_rendition_arg_is_noop() throws Exception {
        WorkItem workItem = mock(WorkItem.class);
        MetaDataMap metaData = new SimpleMetaDataMap();
        metaData.put("PROCESS_ARGS", "");

        process.execute(workItem, workflowSession, metaData);
View Full Code Here

    @Test
    public void test_with_rendition_arg_getting_no_rendition_is_noop() throws Exception {
        String path = "/content/dam/some/path.ext";

        WorkItem workItem = mock(WorkItem.class);
        WorkflowData data = mock(WorkflowData.class);
        when(workItem.getWorkflowData()).thenReturn(data);
        when(data.getPayloadType()).thenReturn(AbstractAssetWorkflowProcess.TYPE_JCR_PATH);
        when(data.getPayload()).thenReturn(path);

        Resource resource = mock(Resource.class);
        Asset asset = mock(Asset.class);
View Full Code Here

    @Test
    public void test_with_rendition_arg_getting_real_rendition() throws Exception {
        String path = "/content/dam/some/path.ext";

        WorkItem workItem = mock(WorkItem.class);
        WorkflowData data = mock(WorkflowData.class);
        when(workItem.getWorkflowData()).thenReturn(data);
        when(data.getPayloadType()).thenReturn(AbstractAssetWorkflowProcess.TYPE_JCR_PATH);
        when(data.getPayload()).thenReturn(path);

        Resource resource = mock(Resource.class);
        Asset asset = mock(Asset.class);
View Full Code Here

TOP

Related Classes of com.day.cq.workflow.exec.WorkItem

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.