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

com.github.bookong.zest.core.ZestStatement Maven / Gradle / Ivy

package com.github.bookong.zest.core;

/**
 * @author jiangxu
 */
public class ZestStatement extends AbstractStatement {

    private final ZestFrameworkMethod zestMethod;

    public ZestStatement(Launcher launcher, Object target, ZestFrameworkMethod zestMethod){
        super(launcher, target);
        this.zestMethod = zestMethod;
    }

    @Override
    public void evaluate() throws Throwable {
        getLauncher().initDataSource();
        getLauncher().getTestCaseData().setStartTime(System.currentTimeMillis());
        invokeMethod(zestMethod);
        getLauncher().getTestCaseData().setEndTime(System.currentTimeMillis());
        getLauncher().checkTargetDataSource();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy