Package org.codehaus.xharness.tasks

Examples of org.codehaus.xharness.tasks.TestCaseTask


        TaskRegistry registry = (TaskRegistry)trCtrl.getMock();
        registry.getProject();
        trCtrl.setReturnValue(project);
       
        MockControl tkCtrl = MockClassControl.createControl(TestCaseTask.class);
        TestCaseTask task = (TestCaseTask)tkCtrl.getMock();
        task.getOwner();
        tkCtrl.setReturnValue("Che Guevara");

        prCtrl.replay();
        trCtrl.replay();
        tkCtrl.replay();
View Full Code Here


        assertEquals("Wrong Result", Result.SERVICE, logger.getTaskType());

        logger = new TaskLogger(registry, new TestGroupTask(), "foo", "bar", "spam");
        assertEquals("Wrong Result", Result.TESTGROUP, logger.getTaskType());

        logger = new TaskLogger(registry, new TestCaseTask(), "foo", "bar", "spam");
        assertEquals("Wrong Result", Result.TESTCASE, logger.getTaskType());

        logger = new TaskLogger(registry, new XharnessTask(), "foo", "bar", "spam");
        assertEquals("Wrong Result", Result.XHARNESS, logger.getTaskType());
View Full Code Here

        xhCtrl.setReturnValue(null);
        xhTask.getRuntimeConfigurableWrapper();
        xhCtrl.setReturnValue(new RuntimeConfigurable(new Object(), "xharness"));
       
        MockControl tkCtrl = MockClassControl.createControl(TestCaseTask.class);
        TestCaseTask tcTask = (TestCaseTask)tkCtrl.getMock();
        tcTask.getRuntimeConfigurableWrapper();
        tkCtrl.setReturnValue(new RuntimeConfigurable(new Object(), "testcase"));

        prCtrl.replay();
        xhCtrl.replay();
        tkCtrl.replay();
View Full Code Here

TOP

Related Classes of org.codehaus.xharness.tasks.TestCaseTask

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.