All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.relevantcodes.extentreports.LogStatus Maven / Gradle / Ivy

The newest version!
/*
* Copyright (c) 2015, Anshoo Arora (Relevant Codes).  All rights reserved.
* 
* Copyrights licensed under the New BSD License.
* 
* See the accompanying LICENSE file for terms.
*/

package com.relevantcodes.extentreports;

import java.io.Serializable;

/**
 * Specifies the log status of the log-event
 * 
 * @author Anshoo Arora
 *
 */
public enum LogStatus implements Serializable {
    PASS, 
    FAIL, 
    FATAL, 
    ERROR, 
    WARNING, 
    INFO, 
    SKIP,
    UNKNOWN;
    
    @Override
    public String toString() {
        switch (this) {
            case PASS: return "pass";
            case FAIL: return "fail";
            case FATAL: return "fatal";
            case ERROR: return "error";
            case WARNING: return "warning";
            case INFO: return "info";
            case SKIP: return "skip";
            default: return "unknown";
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy