Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Mar 26, 2024
1 parent 453a77a commit 90b74d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
*/
package eu.maveniverse.maven.toolbox.shared.internal;

import static java.util.Objects.requireNonNull;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
Expand All @@ -16,8 +18,6 @@
import java.util.function.Predicate;
import org.eclipse.aether.graph.Dependency;

import static java.util.Objects.requireNonNull;

/**
* Dependency matcher.
*/
Expand Down Expand Up @@ -110,7 +110,6 @@ static DependencyMatcher build(Map<String, Object> properties, String spec) {
return builder.build();
}


class DependencyMatcherBuilder extends SpecParser.Builder {
public DependencyMatcherBuilder(Map<String, Object> properties) {
super(properties);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@
*/
package eu.maveniverse.maven.toolbox.shared.internal;

import org.eclipse.aether.artifact.Artifact;
import org.eclipse.aether.artifact.DefaultArtifact;
import org.eclipse.aether.graph.Dependency;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.util.HashMap;
import java.util.Map;

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.eclipse.aether.artifact.DefaultArtifact;
import org.eclipse.aether.graph.Dependency;
import org.junit.jupiter.api.Test;

public class DependencyMatcherTest {
private final Dependency dependency1 = new Dependency(new DefaultArtifact("g:a:1.0"), "compile", false);
private final Dependency dependency2 = new Dependency(new DefaultArtifact("g:a:jar:classifier:1.0-20240322.113300-2"), "runtime", true);
private final Dependency dependency2 =
new Dependency(new DefaultArtifact("g:a:jar:classifier:1.0-20240322.113300-2"), "runtime", true);

@Test
void any() {
Expand Down

0 comments on commit 90b74d7

Please sign in to comment.