public class BeanTester extends Object
Main user class for the BeanTester product. BeanTester performs monotonous testing on normal java beans for accessors, mutators, equals(), hashcode(), toString() so you don't have to write those tests.
Documentation for the product can be found here.
| Constructor and Description |
|---|
BeanTester() |
BeanTester(BeanTesterConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExcludedField(String fieldName)
Given field will be excluded from property-level testing
|
void |
addTestValues(Class<?> fieldClass,
Object[] values)
Values will be used for property-level testing for fields defined with the given class.
|
void |
testBean(Class<?> beanClass)
Will perform all bean tests against the class provided.
|
void |
testBean(Class<?> beanClass,
Object[] constructorArgs)
Will perform all bean tests against the class provided using the constructor arguments provided.
|
public BeanTester()
public BeanTester(BeanTesterConfiguration config)
public void addExcludedField(String fieldName)
fieldName - public void addTestValues(Class<?> fieldClass, Object[] values)
fieldClass - values - public void testBean(Class<?> beanClass)
beanClass - public void testBean(Class<?> beanClass, Object[] constructorArgs)
beanClass - constructorArgs - Copyright © 2015. All rights reserved.