Package io.skodjob.testframe.resources
Class ResourceItem<T extends io.fabric8.kubernetes.api.model.HasMetadata>
java.lang.Object
io.skodjob.testframe.resources.ResourceItem<T>
- Type Parameters:
T- Type of Kubernetes resource.
public final class ResourceItem<T extends io.fabric8.kubernetes.api.model.HasMetadata>
extends Object
Represents an item containing a Kubernetes resource and a runnable action.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceItem(ThrowableRunner throwableRunner) Constructs a ResourceItem with the given runnable action.ResourceItem(ThrowableRunner throwableRunner, T resource) Constructs a ResourceItem with the given runnable action and resource. -
Method Summary
Modifier and TypeMethodDescriptionGets the Kubernetes resource associated with this resource item.Gets the runnable action associated with this resource item.
-
Constructor Details
-
ResourceItem
Constructs a ResourceItem with the given runnable action and resource.- Parameters:
throwableRunner- The runnable action to execute.resource- The Kubernetes resource associated with the action.
-
ResourceItem
Constructs a ResourceItem with the given runnable action.- Parameters:
throwableRunner- The runnable action to execute.
-
-
Method Details
-
getThrowableRunner
Gets the runnable action associated with this resource item.- Returns:
- The runnable action.
-
getResource
Gets the Kubernetes resource associated with this resource item.- Returns:
- The Kubernetes resource.
-