Package org.easetech.easytest.annotation

Examples of org.easetech.easytest.annotation.Format


        return values;
    }
   
    protected String[] getDateFormat(EasyFrameworkMethod testMethod) {
        String[] dateFormat = null;
        Format formatToUse = formatToUse(testMethod);
        if(formatToUse != null) {
            dateFormat = formatToUse.date();
        }
        return dateFormat;
       
    }
View Full Code Here


       
    }
   
    protected String[] getTimeFormat(EasyFrameworkMethod testMethod) {
        String[] timeFormat = null;
        Format formatToUse = formatToUse(testMethod);
        if(formatToUse != null) {
            timeFormat = formatToUse.date();
        }
        return timeFormat;
       
    }
View Full Code Here

       
    }
   
    protected String[] getDateTimeFormat(EasyFrameworkMethod testMethod) {
        String[] dateTimeFormat = null;
        Format formatToUse = formatToUse(testMethod);
        if(formatToUse != null) {
            dateTimeFormat = formatToUse.dateTime();
        }
        return dateTimeFormat;
       
    }
View Full Code Here

       
    }
   
   
    private Format formatToUse(EasyFrameworkMethod testMethod) {
        Format policyLevelFormat = null;
        TestPolicy testPolicy = fClass.getJavaClass().getAnnotation(TestPolicy.class);
        if(testPolicy != null) {
            policyLevelFormat = testPolicy.value().getAnnotation(Format.class);
        }
        Format classLevelFormat = fClass.getJavaClass().getAnnotation(Format.class);
        Format methodLevelFormat = testMethod.getAnnotation(Format.class);
        Format formatToUse = methodLevelFormat != null ? methodLevelFormat : classLevelFormat != null ? classLevelFormat : policyLevelFormat;
        return formatToUse;
    }
View Full Code Here

TOP

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

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.