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

automated.core.enums.EnvEnum Maven / Gradle / Ivy

The newest version!
package automated.core.enums;

import java.time.LocalDateTime;

/**
 * Created by Ismail on 12/25/2017.
 * This Enum Class contains all shared properties that need to be
 * used on framework level
 */
public enum EnvEnum {

    /*************** Enum Definition Section ***************/
    // This Enum used to provide current time (like: add to report name string)
    CURRENT_TIME(LocalDateTime.now().withNano(0).toString()
            .replace(":", "-"));

    /*************** Enum Variables Section ***************/
    // Define private variable so will return each Enum value
    private String env;

    /*************** Enum Methods Section ***************/
    // Class Structure to initialize Enum self value
    EnvEnum(String env) {
        this.env = env;
    }

    // This method to return Enum value
    @Override
    public String toString() {
        return env;
    }

    // This method to set Enum a new value
    public void value(String env) {
        this.env = env;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy