Package au.org.aodn.reefscenarios.actions.job

Examples of au.org.aodn.reefscenarios.actions.job.ProcessRunner


    {
        System.out.println("Running TestExecutePretendScript()");

        try
        {
            ProcessRunner runner = new ProcessRunner();

            Job j = new Job();
            j.setJobName("blah");
            j.setJobPath(System.getProperty("user.dir") + "/src/test");
            System.out.println("job path: " + j.createRunPath());
            User user = new User();
            user.setEmailAddress("pauline.mak@utas.edu.au");

            j.setUserId(user.getUserId());
            runner.submitJob(j);

            System.out.println("new PBS job name: " + j.getPBSJobName());

            Assert.assertEquals(j.getPBSJobName(), "62586");
        }
View Full Code Here


    @Test(expected = ProcessRunnerException.class)
    public void TestNonExistantScript() throws Exception
    {
        System.out.println("Running TestNonExistantScript()");
        ProcessRunner runner = new ProcessRunner();

        Job j = new Job();
        j.setJobName("blah");

        //There should be NO submit.sh script at this directory ($PROJECT/trunk)
        j.setJobPath("/SomeStupidDirectory");

        User user = new User();
        user.setEmailAddress("pauline.mak@utas.edu.au");

        j.setUserId(user.getUserId());
        runner.submitJob(j);
       
    }
View Full Code Here

TOP

Related Classes of au.org.aodn.reefscenarios.actions.job.ProcessRunner

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.