Package org.codehaus.xharness.tasks

Examples of org.codehaus.xharness.tasks.XharnessTask


    public void testTaskStartedVerifyDummyTaskPasses() throws Exception {
        MockControl prCtrl = MockClassControl.createNiceControl(Project.class);
        Project project = (Project)prCtrl.getMock();
       
        MockControl xhCtrl = MockClassControl.createNiceControl(XharnessTask.class);
        XharnessTask xhTask = (XharnessTask)xhCtrl.getMock();
        xhTask.getPattern();
        xhCtrl.setReturnValue(null);
        xhTask.getName();
        xhCtrl.setReturnValue("foo");
        xhTask.getResultsdir();
        xhCtrl.setReturnValue(null);
        xhTask.getBasedir();
        xhCtrl.setReturnValue(null);
        xhTask.getProject();
        xhCtrl.setReturnValue(project);
       
        MockControl tkCtrl = MockClassControl.createControl(ServiceVerifyTask.class);
        ServiceVerifyTask task = (ServiceVerifyTask)tkCtrl.getMock();
        task.getTaskName();
View Full Code Here


    public void testTaskStartedVerifyDummyTaskFails() throws Exception {
        MockControl prCtrl = MockClassControl.createNiceControl(Project.class);
        Project project = (Project)prCtrl.getMock();
       
        MockControl xhCtrl = MockClassControl.createNiceControl(XharnessTask.class);
        XharnessTask xhTask = (XharnessTask)xhCtrl.getMock();
        xhTask.getPattern();
        xhCtrl.setReturnValue(null);
        xhTask.getName();
        xhCtrl.setReturnValue("foo");
        xhTask.getResultsdir();
        xhCtrl.setReturnValue(null);
        xhTask.getBasedir();
        xhCtrl.setReturnValue(null);
        xhTask.getProject();
        xhCtrl.setReturnValue(project);
       
        MockControl tkCtrl = MockClassControl.createControl(ServiceVerifyTask.class);
        tkCtrl.setDefaultMatcher(new ExceptionMatcher());
        ServiceVerifyTask task = (ServiceVerifyTask)tkCtrl.getMock();
View Full Code Here

TOP

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

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.