Package org.easetech.easytest.annotation

Examples of org.easetech.easytest.annotation.TestProperties


     *
     * @param configClass
     * @param classInstance
     */
    public static void loadResourceProperties(Class<?> configClass, Object classInstance) {
        TestProperties resource = configClass.getAnnotation(TestProperties.class);
        if (resource != null) {
            Properties properties = getProperties(resource, configClass);
            setPropertiesFields(configClass, classInstance, properties);
        } else {
            setPropertiesFields(configClass, classInstance, null);
View Full Code Here


            if (field.getType().isAssignableFrom(Properties.class)) {
                field.setAccessible(true);
                try {
                    Properties fieldProperties = null;
                    // If the annotation TestProperties is present at the field level then it gets the priority
                    TestProperties fieldResource = field.getAnnotation(TestProperties.class);
                    if (fieldResource != null) {
                        fieldProperties = getProperties(fieldResource, configClass);
                        field.set(classInstance, fieldProperties != null ? fieldProperties : properties);
                    }
                   
View Full Code Here

TOP

Related Classes of org.easetech.easytest.annotation.TestProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.