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

eu.stamp_project.testrunner.test_framework.assertions.AssertEnum Maven / Gradle / Ivy

package eu.stamp_project.testrunner.test_framework.assertions;

/**
 * created by Benjamin DANGLOT
 * [email protected]
 * on 12/11/18
 */
public enum AssertEnum {

    ASSERT_NULL,
    ASSERT_NOT_NULL,
    ASSERT_TRUE,
    ASSERT_FALSE,
    ASSERT_EQUALS,
    ASSERT_NOT_EQUALS,
    ASSERT_ARRAY_EQUALS;

    public String toStringAccordingToClass(Class clazz) {
        try {
            return (String ) clazz.getDeclaredField(this.name()).get(null);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy