T
- the type of the probe.public class Example<T> extends Object
Example
takes a probe
to define the example. Matching options
and type safety can be tuned using ExampleMatcher
.Constructor and Description |
---|
Example() |
Modifier and Type | Method and Description |
---|---|
ExampleMatcher |
getMatcher()
Get the
ExampleMatcher used. |
T |
getProbe()
Get the example used.
|
Class<T> |
getProbeType()
Get the actual type for the probe used.
|
static <T> Example<T> |
of(T probe)
Create a new
Example including all non-null properties by default. |
static <T> Example<T> |
of(T probe,
ExampleMatcher matcher)
Create a new
Example using the given ExampleMatcher . |
public static <T> Example<T> of(T probe)
Example
including all non-null properties by default.probe
- must not be null.public static <T> Example<T> of(T probe, ExampleMatcher matcher)
Example
using the given ExampleMatcher
.probe
- must not be null.matcher
- must not be null.public T getProbe()
public ExampleMatcher getMatcher()
ExampleMatcher
used.public Class<T> getProbeType()
ClassUtils.getUserClass(Class)
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.