From a12b09c3a38a554ce746f4a6e9ef03fb6cb91adf Mon Sep 17 00:00:00 2001
From: Kezhi Xiong <august.xkz@gmail.com>
Date: Tue, 22 Dec 2020 11:11:51 +0800
Subject: [PATCH] Move CapturingChecksPublisher to util package.

---
 docs/consumers-guide.md                                         | 2 +-
 pom.xml                                                         | 2 +-
 .../io/jenkins/plugins/checks/steps/PublishChecksStepITest.java | 2 +-
 .../io/jenkins/plugins/checks/steps/WithChecksStepITest.java    | 2 +-
 .../checks/{api/test => util}/CapturingChecksPublisher.java     | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
 rename src/test/java/io/jenkins/plugins/checks/{api/test => util}/CapturingChecksPublisher.java (98%)

diff --git a/docs/consumers-guide.md b/docs/consumers-guide.md
index 2fd6d2d2..2a0257be 100644
--- a/docs/consumers-guide.md
+++ b/docs/consumers-guide.md
@@ -65,7 +65,7 @@ it is recommended that you look for this name and set it over your default check
 ## Integration Testing
 
 An implementation of `ChecksPublisher` that captures all published `ChecksDetails` is provided
-in the `test` classifier, as `io.jenkins.plugins.checks.api.test.CapturingChecksPublisher`.
+in the `test` classifier, as `io.jenkins.plugins.checks.util.CapturingChecksPublisher`.
 
 Adding the factory for this publisher as a `TestExtension` will allow inspection of published checks after running a job
 on a `JenkinsRule`.
diff --git a/pom.xml b/pom.xml
index 4fe8161e..58cfd62f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -136,7 +136,7 @@
             </goals>
             <configuration>
               <includes combine.children="append">
-                <include>**/api/test/**</include>
+                <include>**/util/**</include>
               </includes>
             </configuration>
           </execution>
diff --git a/src/test/java/io/jenkins/plugins/checks/steps/PublishChecksStepITest.java b/src/test/java/io/jenkins/plugins/checks/steps/PublishChecksStepITest.java
index f76ff38c..e0807060 100644
--- a/src/test/java/io/jenkins/plugins/checks/steps/PublishChecksStepITest.java
+++ b/src/test/java/io/jenkins/plugins/checks/steps/PublishChecksStepITest.java
@@ -4,7 +4,7 @@
 import io.jenkins.plugins.checks.api.ChecksDetails;
 import io.jenkins.plugins.checks.api.ChecksOutput;
 import io.jenkins.plugins.checks.api.ChecksStatus;
-import io.jenkins.plugins.checks.api.test.CapturingChecksPublisher;
+import io.jenkins.plugins.checks.util.CapturingChecksPublisher;
 import io.jenkins.plugins.util.IntegrationTestWithJenkinsPerTest;
 import org.jenkinsci.plugins.workflow.job.WorkflowJob;
 import org.junit.Test;
diff --git a/src/test/java/io/jenkins/plugins/checks/steps/WithChecksStepITest.java b/src/test/java/io/jenkins/plugins/checks/steps/WithChecksStepITest.java
index 2cc2517b..11ef9e6a 100644
--- a/src/test/java/io/jenkins/plugins/checks/steps/WithChecksStepITest.java
+++ b/src/test/java/io/jenkins/plugins/checks/steps/WithChecksStepITest.java
@@ -4,7 +4,7 @@
 import io.jenkins.plugins.checks.api.ChecksConclusion;
 import io.jenkins.plugins.checks.api.ChecksDetails;
 import io.jenkins.plugins.checks.api.ChecksStatus;
-import io.jenkins.plugins.checks.api.test.CapturingChecksPublisher;
+import io.jenkins.plugins.checks.util.CapturingChecksPublisher;
 import io.jenkins.plugins.util.IntegrationTestWithJenkinsPerTest;
 import org.jenkinsci.plugins.workflow.job.WorkflowJob;
 import org.jenkinsci.plugins.workflow.steps.*;
diff --git a/src/test/java/io/jenkins/plugins/checks/api/test/CapturingChecksPublisher.java b/src/test/java/io/jenkins/plugins/checks/util/CapturingChecksPublisher.java
similarity index 98%
rename from src/test/java/io/jenkins/plugins/checks/api/test/CapturingChecksPublisher.java
rename to src/test/java/io/jenkins/plugins/checks/util/CapturingChecksPublisher.java
index b29d900c..d2674ff3 100644
--- a/src/test/java/io/jenkins/plugins/checks/api/test/CapturingChecksPublisher.java
+++ b/src/test/java/io/jenkins/plugins/checks/util/CapturingChecksPublisher.java
@@ -1,4 +1,4 @@
-package io.jenkins.plugins.checks.api.test;
+package io.jenkins.plugins.checks.util;
 
 import hudson.ExtensionList;
 import hudson.model.Job;