Class ResultsVectorTestUtilities
Object
org.anchoranalysis.test.feature.plugins.ResultsVectorTestUtilities
public class ResultsVectorTestUtilities extends Object
Utility class for testing ResultsVector objects.
This class provides methods to assert the equality of ResultsVector objects with expected values, using a small epsilon for floating-point comparisons.
-
Method Summary
Modifier and Type Method Description static voidassertCalc(org.anchoranalysis.feature.results.ResultsVector results, Object... expectedVals)Asserts that a ResultsVector matches the expected values within a small epsilon.
-
Method Details
-
assertCalc
public static void assertCalc(org.anchoranalysis.feature.results.ResultsVector results, Object... expectedVals)Asserts that a ResultsVector matches the expected values within a small epsilon.If the assertion fails, it prints debug information to the console before throwing an AssertionError.
- Parameters:
results- the ResultsVector to checkexpectedVals- the expected values to compare against- Throws:
AssertionError- if the ResultsVector does not match the expected values within the epsilon
-