Examples of MethodUnderTestDuration


Examples of org.easetech.easytest.reports.data.MethodUnderTestDuration

     */
    public Object intercept(Method method , Object[] args) throws Throwable {
        Long startTime = System.nanoTime();
        Object result = getUserIntercepter().intercept(method, getTargetInstance(), args);
        Long timeTaken = System.nanoTime() - startTime;
        MethodUnderTestDuration durationBean = getMethodDurationBean(method, args, result);
        compareTime(timeTaken , method , durationBean);
        return result;
    }
View Full Code Here

Examples of org.easetech.easytest.reports.data.MethodUnderTestDuration

     * @param args the arguments to the method under test
     * @param result the result returned by the method under test
     * @return an instance of {@link MethodUnderTestDuration}
     */
    private MethodUnderTestDuration getMethodDurationBean(Method method, Object[] args , Object result) {
        MethodUnderTestDuration durationBean = new MethodUnderTestDuration();
        durationBean.setClassUnderTest(getTargetInstance().getClass());
        durationBean.setMethodUnderTest(method);
        durationBean.setMethodArguments(args);
        durationBean.setMethodResult(result);
        return durationBean;
       
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.