All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenpepper.agent.server.ServiceImpl Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
package com.greenpepper.agent.server;

import java.util.Vector;

import com.greenpepper.server.domain.Execution;
import com.greenpepper.server.domain.Runner;
import com.greenpepper.server.domain.Specification;
import com.greenpepper.server.domain.SystemUnderTest;
import com.greenpepper.server.rpc.xmlrpc.XmlRpcDataMarshaller;

/**
 * 

ServiceImpl class.

* * @author oaouattara * @version $Id: $Id */ public class ServiceImpl implements Service { /** {@inheritDoc} */ public Vector execute(Vector runnerParams, Vector sutParams, Vector specificationParams, boolean implemented, String sections, String locale) { Runner runner = XmlRpcDataMarshaller.toRunner(runnerParams); // To prevent call forwarding runner.setServerName(null); runner.setServerPort(null); SystemUnderTest systemUnderTest = XmlRpcDataMarshaller.toSystemUnderTest(sutParams); Specification specification = XmlRpcDataMarshaller.toSpecification(specificationParams); Execution exe = runner.execute(specification, systemUnderTest, implemented, sections, locale); return exe.marshallize(); } }