diff --git a/src/main/java/net/sghill/jenkins/rewrite/IsJenkinsPlugin.java b/src/main/java/org/openrewrite/jenkins/IsJenkinsPlugin.java similarity index 97% rename from src/main/java/net/sghill/jenkins/rewrite/IsJenkinsPlugin.java rename to src/main/java/org/openrewrite/jenkins/IsJenkinsPlugin.java index ed181b6..fd836c4 100644 --- a/src/main/java/net/sghill/jenkins/rewrite/IsJenkinsPlugin.java +++ b/src/main/java/org/openrewrite/jenkins/IsJenkinsPlugin.java @@ -13,10 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package net.sghill.jenkins.rewrite; +package org.openrewrite.jenkins; import lombok.EqualsAndHashCode; import lombok.Value; +import net.sghill.jenkins.rewrite.Jenkins; import org.openrewrite.*; import org.openrewrite.marker.SearchResult; import org.openrewrite.semver.Semver; diff --git a/src/test/java/org/openrewrite/jenkins/IsJenkinsPluginTest.java b/src/test/java/org/openrewrite/jenkins/IsJenkinsPluginTest.java new file mode 100644 index 0000000..c1da2f2 --- /dev/null +++ b/src/test/java/org/openrewrite/jenkins/IsJenkinsPluginTest.java @@ -0,0 +1,71 @@ +/* + * Copyright 2023 the original author or authors. + *
+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *
+ * https://www.apache.org/licenses/LICENSE-2.0 + *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.openrewrite.jenkins;
+
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+import org.openrewrite.test.RecipeSpec;
+import org.openrewrite.test.RewriteTest;
+
+import static org.openrewrite.maven.Assertions.pomXml;
+
+@Disabled
+class IsJenkinsPluginTest implements RewriteTest {
+
+ @Override
+ public void defaults(RecipeSpec spec) {
+ spec.recipe(new IsJenkinsPlugin("*"));
+ }
+
+ @Test
+ void shouldKnowIfJenkinsPlugin() {
+ rewriteRun(pomXml(
+ """
+
- * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *
- * https://www.apache.org/licenses/LICENSE-2.0 - *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package net.sghill.jenkins.rewrite
-
-import org.junit.jupiter.api.Disabled
-import org.junit.jupiter.api.Test
-import org.openrewrite.maven.Assertions.pomXml
-import org.openrewrite.test.RecipeSpec
-import org.openrewrite.test.RewriteTest
-
-class IsJenkinsPluginTest : RewriteTest {
- override fun defaults(spec: RecipeSpec) {
- spec.recipe(IsJenkinsPlugin("*"))
- }
-
- @Test
- @Disabled
- fun isJenkinsPlugin() = rewriteRun(
- pomXml("""
-