// Path: src/main/java/org/tap4j/util/StatusValues.java
// public enum StatusValues {
// 
//     /**
//      * Valid values.
//      */
//     OK("ok"), NOT_OK("not ok");
// 
//     /**
//      * Status value.
//      */
//     private final String textValue;
// 
//     /**
//      * Constructor with parameter.
//      *
//      * @param textValue Status text value
//      */
//     StatusValues(String textValue) {
//         this.textValue = textValue;
//     }
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public String toString() {
//         return this.textValue;
//     }
// 
//     /**
//      * Get status value for a given string.
//      * @param textValue String
//      * @return Status value
//      */
//     public static StatusValues get(String textValue) {
//         if ("ok".equals(textValue)) {
//             return StatusValues.OK;
//         }
//         if ("not ok".equals(textValue)) {
//             return StatusValues.NOT_OK;
//         }
//         return null;
//     }
// 
// }


import java.util.LinkedList;
import java.util.List;
import org.tap4j.util.StatusValues;
/*
 * The MIT License
 *
 * Copyright (c) 2010 tap4j team (see AUTHORS)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.tap4j.model;



/**
 * A simple test result. Valid values are <em>OK</em> and <em>NOT OK</em>.
 *
 * @since 1.0
 */
public class TestResult extends TapResult {

    /**
     * Serial Version UID.
     */
    private static final long serialVersionUID = -2735372334488828166L;

    /**
     * Test Status (OK, NOT OK).
     */
    private StatusValues status;

    /**
     * Test Number.
     */
    private Integer testNumber;

    /**
     * Description of the test.
     */
    private String description;

    /**
     * Directive of the test (TO DO, SKIP).
     */
    private Directive directive;

    /**
     * Child subtest.
     */
    private TestSet subtest;

    /**
     * Comment.
     */
    private List<Comment> comments;

    /**
     * Default constructor.
     */
    public TestResult() {
        super();
        this.status = StatusValues.NOT_OK;
        this.testNumber = -1;
        this.subtest = null;
        this.comments = new LinkedList<>();
    }

    /**
     * Constructor with parameter.
     *
     * @param testStatus Status of the test.
     * @param testNumber Number of the test.
     */
// Path: src/main/java/org/tap4j/util/StatusValues.java
// public enum StatusValues {
// 
//     /**
//      * Valid values.
//      */
//     OK("ok"), NOT_OK("not ok");
// 
//     /**
//      * Status value.
//      */
//     private final String textValue;
// 
//     /**
//      * Constructor with parameter.
//      *
//      * @param textValue Status text value
//      */
//     StatusValues(String textValue) {
//         this.textValue = textValue;
//     }
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public String toString() {
//         return this.textValue;
//     }
// 
//     /**
//      * Get status value for a given string.
//      * @param textValue String
//      * @return Status value
//      */
//     public static StatusValues get(String textValue) {
//         if ("ok".equals(textValue)) {
//             return StatusValues.OK;
//         }
//         if ("not ok".equals(textValue)) {
//             return StatusValues.NOT_OK;
//         }
//         return null;
//     }
// 
// }


// Path: src/main/java/org/tap4j/model/TestResult.java
import java.util.LinkedList;
import java.util.List;
import org.tap4j.util.StatusValues;

/*
 * The MIT License
 *
 * Copyright (c) 2010 tap4j team (see AUTHORS)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.tap4j.model;



/**
 * A simple test result. Valid values are <em>OK</em> and <em>NOT OK</em>.
 *
 * @since 1.0
 */
public class TestResult extends TapResult {

    /**
     * Serial Version UID.
     */
    private static final long serialVersionUID = -2735372334488828166L;

    /**
     * Test Status (OK, NOT OK).
     */
    private StatusValues status;

    /**
     * Test Number.
     */
    private Integer testNumber;

    /**
     * Description of the test.
     */
    private String description;

    /**
     * Directive of the test (TO DO, SKIP).
     */
    private Directive directive;

    /**
     * Child subtest.
     */
    private TestSet subtest;

    /**
     * Comment.
     */
    private List<Comment> comments;

    /**
     * Default constructor.
     */
    public TestResult() {
        super();
        this.status = StatusValues.NOT_OK;
        this.testNumber = -1;
        this.subtest = null;
        this.comments = new LinkedList<>();
    }

    /**
     * Constructor with parameter.
     *
     * @param testStatus Status of the test.
     * @param testNumber Number of the test.
     */
    public TestResult(StatusValues testStatus, Integer testNumber) {