2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org
.argeo
.slc
.msg
.test
.tree
;
19 import java
.io
.Serializable
;
21 import org
.argeo
.slc
.core
.test
.tree
.TreeTestResult
;
22 import org
.argeo
.slc
.test
.TestRunDescriptor
;
24 public class CreateTreeTestResultRequest
implements Serializable
{
25 private static final long serialVersionUID
= 7443906609434527687L;
26 private TreeTestResult treeTestResult
;
27 private TestRunDescriptor testRunDescriptor
;
29 public CreateTreeTestResultRequest() {
33 public CreateTreeTestResultRequest(TreeTestResult treeTestResult
) {
34 this.treeTestResult
= treeTestResult
;
35 if (treeTestResult
.getCurrentTestRun() != null)
36 testRunDescriptor
= new TestRunDescriptor(treeTestResult
37 .getCurrentTestRun());
40 public TreeTestResult
getTreeTestResult() {
41 return treeTestResult
;
44 public void setTreeTestResult(TreeTestResult treeTestResult
) {
45 this.treeTestResult
= treeTestResult
;
48 public TestRunDescriptor
getTestRunDescriptor() {
49 return testRunDescriptor
;
52 public void setTestRunDescriptor(TestRunDescriptor testRunDescriptor
) {
53 this.testRunDescriptor
= testRunDescriptor
;
57 public String
toString() {
58 return getClass().getSimpleName() + "#" + treeTestResult
.getUuid();