@Factory
annotation.
| Modifier and Type | Class and Description |
|---|---|
| public static class | IObject.
A wrapper class that wraps around an array and associates a unique Id that can be used as a key for the array. |
| public static class | IObject.
A wrapper object that associates a unique id to every unique test class object. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addObject(IObject.
- The instance that should be added to the list of instances. instance
|
| public static Optional | |
| public long[] | Returns: - An array representing the hash codes of the corresponding instances.
|
| public IObject. | Returns: - An array ofIdentifiableObject objects- create, String true if objects should be created before returning.- Text that should be prefixed to the error message when there are
issues. Can be empty. errorMsgPrefix)Returns all the instances the methods will be invoked upon. |
| public static long[] | Returns: - An array representing the hash codes of the corresponding instances.- The object that should be inspected for its compatibility with object)IObject.
|
| public static IObject. | Returns: - An array (can be empty is instance compatibility fails) ofIdentifiableObject
objects.- The object that should be inspected for its compatibility with object, boolean IObject.- create)true if objects should be created before returning.
|
| public static IObject. | Returns: - An array (can be empty is instance compatibility fails) ofIdentifiableObject
objects.- The object that should be inspected for its compatibility with object, boolean IObject.- create, String true if objects should be created before returning.- Text that should be prefixed to the error message when there are
issues. Can be empty. errorMsgPrefix)
|
| addObject | back to summary |
|---|---|
public void addObject(IObject.
| |
| cast | back to summary |
|---|---|
| public static Optional | |
| getInstanceHashCodes | back to summary |
|---|---|
public long[] getInstanceHashCodes()
| |
| getObjects | back to summary |
|---|---|
| public IObject. Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.
| |
| instanceHashCodes | back to summary |
|---|---|
| public static long[] instanceHashCodes(Object object) | |
| objects | back to summary |
|---|---|
public static IObject.
| |
| objects | back to summary |
|---|---|
public static IObject.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public String | |
| public int |
| instanceId | back to summary |
|---|---|
| private final String instanceId | |
| parameters | back to summary |
|---|---|
| private final Object[] parameters | |
| IdentifiableArrayObject | back to summary |
|---|---|
| public IdentifiableArrayObject(Object[] parameters) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getInstanceId | back to summary |
|---|---|
| public String getInstanceId() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public Object | |
| public UUID | |
| public int | |
| public static Object |
| instance | back to summary |
|---|---|
| private final Object instance | |
| instanceId | back to summary |
|---|---|
| private final UUID instanceId | |
| IdentifiableObject | back to summary |
|---|---|
| public IdentifiableObject(Object instance) | |
| IdentifiableObject | back to summary |
|---|---|
| public IdentifiableObject(Object instance, UUID instanceId) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getInstance | back to summary |
|---|---|
| public Object getInstance() | |
| getInstanceId | back to summary |
|---|---|
| public UUID getInstanceId() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| unwrap | back to summary |
|---|---|
| public static Object unwrap(IObject. | |