Class TestParameterValue
- java.lang.Object
-
- com.google.testing.junit.testparameterinjector.TestParameterValue
-
public class TestParameterValue extends Object
Wrapper class around a parameter value. Use this to give a value a name that is different from itstoString()
method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TestParameterValue
withName(String name)
Returns a newTestParameterValue
instance that stores the given name.static TestParameterValue
wrap(Object wrappedValue)
Wraps the given value.
-
-
-
Method Detail
-
wrap
public static TestParameterValue wrap(@Nullable Object wrappedValue)
Wraps the given value.
-
withName
public TestParameterValue withName(String name)
Returns a newTestParameterValue
instance that stores the given name. The TestParameterInjector framework will use this name instead ofwrappedValue.toString()
when generating the test name.
-
-