
de.dagere.kopeme.annotations.AnnotationChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kopeme-core Show documentation
Show all versions of kopeme-core Show documentation
KoPeMe performance testing core
package de.dagere.kopeme.annotations;
public class AnnotationChecker {
public static void check(final PerformanceTest annotation) {
if (annotation.iterations() < 1) {
throw new RuntimeException("Iterations need to be 1 or more!");
}
if (annotation.repetitions() < 1) {
throw new RuntimeException("Iterations need to be 1 or more!");
}
if (annotation.warmup() < 0) {
throw new RuntimeException("Warmup needs to be 0 or more!");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy