// Path: src/main/java/com/jamierf/dropwizard/debpkg/filter/DependencyFilter.java
// public class DependencyFilter implements Predicate<Dependency> {
// 
//     private final StringMatchingFilter groupFilter;
//     private final StringMatchingFilter artifactFilter;
// 
//     public DependencyFilter(final String groupId, final String artifactId) {
//         groupFilter = new StringMatchingFilter(groupId);
//         artifactFilter = new StringMatchingFilter(artifactId);
//     }
// 
//     @Override
//     public boolean apply(final Dependency dependency) {
//         return dependency != null
//                 && groupFilter.apply(dependency.getGroupId())
//                 && artifactFilter.apply(dependency.getArtifactId());
//     }
// }


import com.jamierf.dropwizard.debpkg.filter.DependencyFilter;
import org.apache.maven.model.Dependency;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
package com.jamierf.dropwizard.debpkg.filter;



public class DependencyFilterTest {

    private static Dependency createDependency(String groupId, String artifactId, String version) {
        final Dependency dependency = new Dependency();
        dependency.setGroupId(groupId);
        dependency.setArtifactId(artifactId);
        dependency.setVersion(version);
        return dependency;
    }

// Path: src/main/java/com/jamierf/dropwizard/debpkg/filter/DependencyFilter.java
// public class DependencyFilter implements Predicate<Dependency> {
// 
//     private final StringMatchingFilter groupFilter;
//     private final StringMatchingFilter artifactFilter;
// 
//     public DependencyFilter(final String groupId, final String artifactId) {
//         groupFilter = new StringMatchingFilter(groupId);
//         artifactFilter = new StringMatchingFilter(artifactId);
//     }
// 
//     @Override
//     public boolean apply(final Dependency dependency) {
//         return dependency != null
//                 && groupFilter.apply(dependency.getGroupId())
//                 && artifactFilter.apply(dependency.getArtifactId());
//     }
// }


// Path: src/test/java/com/jamierf/dropwizard/debpkg/filter/DependencyFilterTest.java
import com.jamierf.dropwizard.debpkg.filter.DependencyFilter;
import org.apache.maven.model.Dependency;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

package com.jamierf.dropwizard.debpkg.filter;



public class DependencyFilterTest {

    private static Dependency createDependency(String groupId, String artifactId, String version) {
        final Dependency dependency = new Dependency();
        dependency.setGroupId(groupId);
        dependency.setArtifactId(artifactId);
        dependency.setVersion(version);
        return dependency;
    }

    private DependencyFilter filter;