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 Details

    • ResourceItem

      public ResourceItem(ThrowableRunner throwableRunner, T resource)
      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

      public ResourceItem(ThrowableRunner throwableRunner)
      Constructs a ResourceItem with the given runnable action.
      Parameters:
      throwableRunner - The runnable action to execute.
  • Method Details

    • getThrowableRunner

      public ThrowableRunner getThrowableRunner()
      Gets the runnable action associated with this resource item.
      Returns:
      The runnable action.
    • getResource

      public T getResource()
      Gets the Kubernetes resource associated with this resource item.
      Returns:
      The Kubernetes resource.