public final class JavaBeanTester extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
test(Class<?>... classes)
Deprecated.
use
testClasses(Class[]) ()} instead. |
static void |
test(Class<?> clazz)
Deprecated.
use
testClass(Class) ()} instead. |
static void |
test(Class<?> clazz,
String... skipTheseFields)
Deprecated.
use
testClass(Class, String...) ()} instead. |
static void |
testClass(Class<?> clazz)
Test getters and setters for given class.
|
static void |
testClass(Class<?> clazz,
FieldCriteria fieldCriteria)
Test getters and setters for given class.
|
static void |
testClass(Class<?> clazz,
String... skipTheseFields)
Test getters and setters for given class.
|
static void |
testClasses(Class<?>... classes)
Test getters and setters for given classes.
|
static void |
testClasses(Package pkg)
Test getters and setters for all classes found in package.
|
static void |
testClasses(Package pkg,
ClassCriteria classCriteria)
Test getters and setters for all classes found in package depending on search criteria.
|
@Deprecated public static void test(Class<?>... classes) throws IntrospectionException
testClasses(Class[]) ()} instead.IntrospectionException@Deprecated public static void test(Class<?> clazz) throws IntrospectionException
testClass(Class) ()} instead.IntrospectionException@Deprecated public static void test(Class<?> clazz, String... skipTheseFields) throws IntrospectionException
testClass(Class, String...) ()} instead.IntrospectionExceptionpublic static void testClasses(Class<?>... classes) throws IntrospectionException
classes - Classes to test.IntrospectionException - If an exception occurs during introspection.IllegalArgumentException - If passed class array is null.public static void testClass(Class<?> clazz) throws IntrospectionException
clazz - Class to test.IntrospectionException - If an exception occurs during introspection.IllegalArgumentException - If passed class array is null.public static void testClass(Class<?> clazz, String... skipTheseFields) throws IntrospectionException
clazz - Class to test.skipTheseFields - Names of fields that should not be tested.IntrospectionException - If an exception occurs during introspection.IllegalArgumentException - If passed class array is null.public static void testClass(Class<?> clazz, FieldCriteria fieldCriteria) throws IntrospectionException
clazz - Class to test.fieldCriteria - Search criteria for the fields to be tested.IntrospectionException - If an exception occurs during introspection.IllegalArgumentException - If passed class array is null.public static void testClasses(Package pkg) throws IOException, ClassNotFoundException, IntrospectionException
pkg - Package to search for classes from.IOException - If reading using classloader fails.ClassNotFoundException - If creating class for a class name fails.IntrospectionException - If an exception occurs during introspection.IllegalArgumentException - If passed package is null.public static void testClasses(Package pkg, ClassCriteria classCriteria) throws IOException, ClassNotFoundException, IntrospectionException
pkg - Package to search for classes from.classCriteria - Search criteria for the classes to be tested.IOException - If reading using classloader fails.ClassNotFoundException - If creating class for a class name fails.IntrospectionException - If an exception occurs during introspection.IllegalArgumentException - If passed package is null.Copyright © 2017. All rights reserved.