001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: /*
043: * UnitTestCase.java
044: *
045: * Created on November 1, 2001, 6:14 PM
046: */
047:
048: package org.netbeans.xtest.pe.xmlbeans;
049:
050: /**
051: *
052: * @author mb115822
053: */
054: public class UnitTestCase extends XMLBean {
055:
056: public static final String TEST_PASS = "pass";
057: public static final String TEST_FAIL = "fail";
058: public static final String TEST_ERROR = "error";
059: public static final String TEST_UNKNOWN = "unknown";
060: public static final String TEST_UNEXPECTED_PASS = "unexpected pass";
061: public static final String TEST_EXPECTED_FAIL = "expected fail";
062:
063: /** Creates new UnitTestCase */
064: public UnitTestCase() {
065: }
066:
067: /** Getter for property name.
068: * @return Value of property name.
069: */
070: public String getName() {
071: return xmlat_name;
072: }
073:
074: /** Setter for property name.
075: * @param name New value of property name.
076: */
077: public void setName(String name) {
078: xmlat_name = name;
079: }
080:
081: /** Getter for property time.
082: * @return Value of property time.
083: */
084: public long getTime() {
085: return xmlat_time;
086: }
087:
088: /** Setter for property time.
089: * @param time New value of property time.
090: */
091: public void setTime(long time) {
092: xmlat_time = time;
093: }
094:
095: /** Getter for property className.
096: * @return Value of property className.
097: */
098: public String getClassName() {
099: return xmlat_class;
100: }
101:
102: /** Setter for property className.
103: * @param className New value of property className.
104: */
105: public void setClassName(String className) {
106: xmlat_class = className;
107: }
108:
109: /** Getter for property result.
110: * @return Value of property result.
111: */
112: public String getResult() {
113: return xmlat_result;
114: }
115:
116: /** Setter for property result.
117: * @param result New value of property result.
118: */
119: public void setResult(String result) {
120: xmlat_result = result;
121: }
122:
123: /** Getter for property workdir.
124: * @return Value of property workdir.
125: */
126: public String getWorkdir() {
127: return xmlat_workdir;
128: }
129:
130: /** Setter for property workdir.
131: * @param workdir New value of property workdir.
132: */
133: public void setWorkdir(String workdir) {
134: xmlat_workdir = workdir;
135: }
136:
137: /** Getter for property message.
138: * @return Value of property message.
139: */
140: public String getMessage() {
141: return xmlat_message;
142: }
143:
144: /** Setter for property message.
145: * @param message New value of property message.
146: */
147: public void setMessage(String message) {
148: xmlat_message = message;
149: }
150:
151: /** Getter for property unitTestSuite_id.
152: * @return Value of property unitTestSuite_id.
153: */
154: public long getUnitTestSuite_id() {
155: return this .unitTestSuite_id;
156: }
157:
158: /** Setter for property unitTestSuite_id.
159: * @param unitTestSuite_id New value of property unitTestSuite_id.
160: */
161: public void setUnitTestSuite_id(long unitTestSuite_id) {
162: this .unitTestSuite_id = unitTestSuite_id;
163: }
164:
165: /** Getter for property stackTrace.
166: * @return Value of property stackTrace.
167: */
168: public String getStackTrace() {
169: return xml_cdata;
170: }
171:
172: /** Setter for property stackTrace.
173: * @param stackTrace New value of property stackTrace.
174: */
175: public void setStackTrace(String stackTrace) {
176: xml_cdata = stackTrace;
177: }
178:
179: /** Getter for property failReason.
180: * @return Value of property failReason.
181: */
182: public String getFailReason() {
183: return xmlat_failReason;
184: }
185:
186: /** Setter for property failReason.
187: * @param message New value of property failReason.
188: */
189: public void setFailReason(String failReason) {
190: xmlat_failReason = failReason;
191: }
192:
193: // attributes
194: public String xmlat_class;
195: public String xmlat_name;
196: public String xmlat_result;
197: public String xmlat_workdir;
198: public String xmlat_message;
199: public String xmlat_failReason;
200: public long xmlat_time;
201:
202: /** Holds value of property unitTestSuite_id. */
203: private long unitTestSuite_id;
204:
205: }
|