com.cognifide.aet.communication.api.wrappers.SuiteRunWrapper Maven / Gradle / Ivy
/**
* AET
*
* Copyright (C) 2013 Cognifide Limited
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.cognifide.aet.communication.api.wrappers;
import com.cognifide.aet.communication.api.metadata.RunType;
import com.cognifide.aet.communication.api.metadata.Suite;
public class SuiteRunWrapper implements Run {
private static final long serialVersionUID = -4514420164522811899L;
private Suite suite;
public SuiteRunWrapper(Suite suite) {
this.suite = suite;
}
@Override
public RunType getType() {
return RunType.SUITE;
}
@Override
public void setObjectToRun(Suite suite) {
this.suite = suite;
}
@Override
public void setRealSuite(Suite suite) {
this.suite = suite;
}
@Override
public String getCorrelationId(){
return suite.getCorrelationId();
}
@Override
public String getCompany(){
return suite.getCompany();
}
@Override
public String getName() {
return suite.getName();
}
@Override
public String getSuiteIdentifier() {
return suite.getSuiteIdentifier();
}
@Override
public String getProject(){
return suite.getProject();
}
@Override
public Suite getRealSuite() {
return suite;
}
@Override
public Suite getObjectToRun(){
return suite;
}
}