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

de.dagere.kopeme.annotations.AnnotationChecker Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
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