![JAR search and dependency download from the Maven repository](/logo.png)
link.jfire.testsupport.rule.CustomRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfire-testsupport Show documentation
Show all versions of jfire-testsupport Show documentation
Testsupport is test of jfire system support framework
The newest version!
package link.jfire.testsupport.rule;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
public class CustomRule implements TestRule
{
public Statement apply(Statement base, Description description)
{
MutiThreadTest test = description.getAnnotation(MutiThreadTest.class);
if (test != null)
{
return new MutiThreadStatement(test.repeatTimes(), test.threadNums(), base);
}
RepeatTest repeatTest = description.getAnnotation(RepeatTest.class);
if (repeatTest != null)
{
return new RepeatStatement(repeatTest.value(), base);
}
return base;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy