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

de.tsl2.nano.autotest.creator.AutoFunctionTest Maven / Gradle / Ivy

There is a newer version: 2.5.3
Show newest version
package de.tsl2.nano.autotest.creator;

import java.util.Collection;

import org.junit.AfterClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

import de.tsl2.nano.autotest.ValueRandomizer;
import de.tsl2.nano.core.IPreferences;

/**
 * Generic Test creating test cases for each method annotated with
 * {@link InverseFunction}. For more informations, see
 * {@link InverseFunctionTester}

* * configure the test with system properties starting with "tsl2.functiontest.": * duplication, filter, delta.float, delta.double * * @author Thomas Schneider */ @RunWith(Parameterized.class) @FunctionTester({InverseFunctionTester.class, ExpectationFunctionTester.class}) public class AutoFunctionTest extends ADefaultAutoTester { AFunctionTester tester; public AutoFunctionTest(AFunctionTester tester) { this.tester = tester; } @Parameters(name = "{0}") public static Collection parameters() { return AFunctionTester.prepareTestParameters(AutoFunctionTest.class.getAnnotation(FunctionTester.class)); } @AfterClass public static void tearDownClass() { ValueRandomizer.reset(); IPreferences.reset(); } @Test public void test() { tester.testMe(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy