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

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

The newest version!
package automated.core.enums;

/**
 * Created by Ismail on 12/25/2017.
 * This Enum Class contains all main Framework Paths
 */
public enum PathEnum {

    /*************** Enum Definition Section ***************/
    SRC("src/"),// This Enum saves root of project src
    MAIN(SRC + "main/"),// This Enum saves project main folder
    TEST(SRC + "test/"),// This Enum saves project test folder
    JAVA_MAIN(MAIN + "java/"),// This Enum saves project java_main folder
    // This Enum saves project resources_main folder
    RESOURCES_MAIN(MAIN + "resources/"),
    JAVA_TEST(TEST + "java/"),// This Enum saves project java_test folder
    // This Enum saves project resources_test folder
    RESOURCES_TEST(TEST + "resources/"),
    REPORT("target/extent-reports/"),// This Enum saves Report Path
    SCREENSHOTS("screenshots/");// This Enum saves ScreenShot Path

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy