Package org.apache.examples.panorama.startup.impl

Examples of org.apache.examples.panorama.startup.impl.Task


    }
   
    @Contribution( configurationId="panorama.startup.tasks" )
    public void contributeTaks(List<Task> tasks)
    {
        Task mailStartupTask = new Task();
        mailStartupTask.setExecutable(service("MailStartup", Executable.class));
        mailStartupTask.setId("mail");
        mailStartupTask.setTitle("Mail");
       
        tasks.add(mailStartupTask);
    }
View Full Code Here


public class PanoramaDiscussionsModule extends AbstractAnnotatedModule
{
    @Contribution( configurationId="panorama.startup.tasks" )
    public void contributeTaks(List<Task> tasks)
    {
        Task discussionStartupTask = new Task();
        ExecuteStatic executable = new ExecuteStatic();
        executable.setTargetClass(DiscussionsStartup.class);
        discussionStartupTask.setExecutable(executable);
        discussionStartupTask.setId("discussions");
        discussionStartupTask.setTitle("Discussions");
       
        tasks.add(discussionStartupTask);
    }
View Full Code Here

    public void testSuccess()
    {
        ExecutableFixture f1 = new ExecutableFixture("f1");

        Task t1 = new Task();

        t1.setExecutable(f1);
        t1.setId("first");
        t1.setAfter("second");
        t1.setTitle("Fixture #1");

        ExecutableFixture f2 = new ExecutableFixture("f2");

        Task t2 = new Task();
        t2.setExecutable(f2);
        t2.setId("second");
        t2.setTitle("Fixture #2");

        List tasks = new ArrayList();
        tasks.add(t1);
        tasks.add(t2);
View Full Code Here

            {
                throw new ApplicationRuntimeException("Failure!");
            }
        };

        Task t = new Task();

        t.setExecutable(f);
        t.setId("failure");
        t.setTitle("Failure");

        List tasks = Collections.singletonList(t);

        MockControl logControl = newControl(Log.class);
        Log log = (Log) logControl.getMock();
View Full Code Here

TOP

Related Classes of org.apache.examples.panorama.startup.impl.Task

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.