Skip to content

Commit

Permalink
Relocate BomLookup
Browse files Browse the repository at this point in the history
Move test to src/test/java. Issue #4
  • Loading branch information
sghill committed Jun 29, 2023
1 parent 33950f5 commit 6d88a3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.openrewrite.Preconditions;
import org.openrewrite.ScanningRecipe;
import org.openrewrite.TreeVisitor;
import org.openrewrite.jenkins.BomLookup;
import org.openrewrite.marker.SearchResult;
import org.openrewrite.maven.AddManagedDependency;
import org.openrewrite.maven.AddManagedDependencyVisitor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* 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.Getter;
import org.openrewrite.InMemoryExecutionContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.sghill.jenkins.rewrite;
package org.openrewrite.jenkins;

import org.junit.jupiter.api.Test;
import org.openrewrite.maven.tree.GroupArtifact;
Expand All @@ -24,12 +24,12 @@ public class BomLookupTest {
static final BomLookup bomLookup = new BomLookup();

@Test
void lookup() {
void shouldLookupByGroupIdAndArtifactId() {
assertThat(bomLookup.inBom("io.jenkins.plugins", "theme-manager")).isTrue();
}

@Test
void allPlugins() {
void shouldPrintAllPlugins() {
bomLookup.getGroupArtifacts().stream()
.filter(groupArtifact -> groupArtifact.getGroupId().equals("io.jenkins.plugins"))
.map(GroupArtifact::getArtifactId)
Expand Down

0 comments on commit 6d88a3e

Please sign in to comment.