public class TestNGUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TestNGUtil.SingleTestUnitTest<TestClazz extends TestNGUtil.TestNGParameterizable> |
static class |
TestNGUtil.TestNGParameterizable
Interface for exposing an implementation for converting an object into a Object[] appropriate for positional
parameter-passing as performed by TestNG.
|
Constructor and Description |
---|
TestNGUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
assertEqualDoubleArrays(double[] lhs,
double[] rhs,
double accuracy) |
static boolean |
compareDoubleWithAccuracy(double lhs,
double rhs,
double accuracy)
Small utility function for determining if two doubles are within a _relative_ accuracy of each other.
|
static java.lang.Object[][] |
generateDataProvider(java.lang.Iterable<? extends TestNGUtil.TestNGParameterizable> testcases) |
static java.lang.Object[][] |
generateDataProvider(TestNGUtil.TestNGParameterizable[] testcases) |
public static java.lang.Object[][] generateDataProvider(TestNGUtil.TestNGParameterizable[] testcases)
public static java.lang.Object[][] generateDataProvider(java.lang.Iterable<? extends TestNGUtil.TestNGParameterizable> testcases)
public static boolean compareDoubleWithAccuracy(double lhs, double rhs, double accuracy)
lhs
- first numberrhs
- second numberaccuracy
- maximal allowed relative difference between the two numberspublic static void assertEqualDoubleArrays(double[] lhs, double[] rhs, double accuracy)