source: proiecte/HadoopJUnit/hadoop-0.20.1/src/test/org/apache/hadoop/cli/util/ComparatorData.java @ 120

Last change on this file since 120 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1/**
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements.  See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership.  The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License.  You may obtain a copy of the License at
9 *
10 *     http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19package org.apache.hadoop.cli.util;
20
21import java.util.Vector;
22
23/**
24 *
25 * Class to store CLI Test Comparators Data
26 */
27public class ComparatorData {
28  private String expectedOutput = null;
29  private String actualOutput = null;
30  private boolean testResult = false;
31  private int exitCode = 0;
32  private String comparatorType = null;
33 
34  public ComparatorData() {
35
36  }
37
38  /**
39   * @return the expectedOutput
40   */
41  public String getExpectedOutput() {
42    return expectedOutput;
43  }
44
45  /**
46   * @param expectedOutput the expectedOutput to set
47   */
48  public void setExpectedOutput(String expectedOutput) {
49    this.expectedOutput = expectedOutput;
50  }
51
52  /**
53   * @return the actualOutput
54   */
55  public String getActualOutput() {
56    return actualOutput;
57  }
58
59  /**
60   * @param actualOutput the actualOutput to set
61   */
62  public void setActualOutput(String actualOutput) {
63    this.actualOutput = actualOutput;
64  }
65
66  /**
67   * @return the testResult
68   */
69  public boolean getTestResult() {
70    return testResult;
71  }
72
73  /**
74   * @param testResult the testResult to set
75   */
76  public void setTestResult(boolean testResult) {
77    this.testResult = testResult;
78  }
79
80  /**
81   * @return the exitCode
82   */
83  public int getExitCode() {
84    return exitCode;
85  }
86
87  /**
88   * @param exitCode the exitCode to set
89   */
90  public void setExitCode(int exitCode) {
91    this.exitCode = exitCode;
92  }
93
94  /**
95   * @return the comparatorType
96   */
97  public String getComparatorType() {
98    return comparatorType;
99  }
100
101  /**
102   * @param comparatorType the comparatorType to set
103   */
104  public void setComparatorType(String comparatorType) {
105    this.comparatorType = comparatorType;
106  }
107
108}
Note: See TracBrowser for help on using the repository browser.