Package boofcv.testing
Class CompareIdenticalFunctions
- java.lang.Object
-
- boofcv.testing.CompareEquivalentFunctions
-
- boofcv.testing.CompareIdenticalFunctions
-
public abstract class CompareIdenticalFunctions extends CompareEquivalentFunctions
Provides common implementations of functions in CompareEquivalentFunctions. Assumes only images are modified and tests those.
-
-
Field Summary
-
Fields inherited from class boofcv.testing.CompareEquivalentFunctions
ignoreSubimage, methodTest, methodValidation
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompareIdenticalFunctions(java.lang.Class<?> testClass, java.lang.Class<?>... validationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcompareResults(java.lang.Object targetResult, java.lang.Object[] targetParam, java.lang.Object validationResult, java.lang.Object[] validationParam)Compares the two sets of results from the target and validation methods.protected booleanisEquivalent(java.lang.reflect.Method candidate, java.lang.reflect.Method evaluation)Returns two if the two methods provide results that should be comparedprotected booleanisTestMethod(java.lang.reflect.Method m)Checks to see if the provided method from the test class is a method that should be testedprotected java.lang.Object[]reformatForValidation(java.lang.reflect.Method m, java.lang.Object[] targetParam)Adjusts the input for the validation method.-
Methods inherited from class boofcv.testing.CompareEquivalentFunctions
compareMethod, compareMethod, createInputParam, createSubImageInputs, performTests
-
-
-
-
Method Detail
-
isTestMethod
protected boolean isTestMethod(java.lang.reflect.Method m)
Description copied from class:CompareEquivalentFunctionsChecks to see if the provided method from the test class is a method that should be tested- Specified by:
isTestMethodin classCompareEquivalentFunctions
-
isEquivalent
protected boolean isEquivalent(java.lang.reflect.Method candidate, java.lang.reflect.Method evaluation)Description copied from class:CompareEquivalentFunctionsReturns two if the two methods provide results that should be compared- Specified by:
isEquivalentin classCompareEquivalentFunctions
-
reformatForValidation
protected java.lang.Object[] reformatForValidation(java.lang.reflect.Method m, java.lang.Object[] targetParam)Description copied from class:CompareEquivalentFunctionsAdjusts the input for the validation method. Allows methods with different parameter sets to be used.- Specified by:
reformatForValidationin classCompareEquivalentFunctions
-
compareResults
protected void compareResults(java.lang.Object targetResult, java.lang.Object[] targetParam, java.lang.Object validationResult, java.lang.Object[] validationParam)Description copied from class:CompareEquivalentFunctionsCompares the two sets of results from the target and validation methods.- Specified by:
compareResultsin classCompareEquivalentFunctions
-
-