diff --git a/pom.xml b/pom.xml index a5165a84b..628e790f1 100644 --- a/pom.xml +++ b/pom.xml @@ -169,6 +169,12 @@ io.jenkins.configuration-as-code test-harness test + + + org.jetbrains + annotations + + org.awaitility diff --git a/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java b/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java index a7b43a915..9bf52f86d 100644 --- a/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java +++ b/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java @@ -94,7 +94,6 @@ import org.jenkinsci.plugins.workflow.job.WorkflowRun; import org.jenkinsci.plugins.workflow.steps.durable_task.DurableTaskStep; import org.jenkinsci.plugins.workflow.test.steps.SemaphoreStep; -import org.jetbrains.annotations.NotNull; import org.junit.After; import org.junit.Assert; import org.junit.Before; @@ -941,9 +940,9 @@ public void decoratorFailure() throws Exception { @TestExtension("decoratorFailure") public static class DecoratorImpl implements PodDecorator { - @NotNull + @NonNull @Override - public Pod decorate(@NotNull KubernetesCloud kubernetesCloud, @NotNull Pod pod) { + public Pod decorate(@NonNull KubernetesCloud kubernetesCloud, @NonNull Pod pod) { throw new PodDecoratorException("I always fail"); } }