@@ -0,0 +1,1602 @@
+package checkdep;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.io.IOException;%0A%0Aimport jdepend.framework.DependencyConstraint;%0Aimport jdepend.framework.JDepend;%0Aimport jdepend.framework.PackageFilter;%0A%0Aimport org.junit.Test;%0A%0Apublic class PackageDependencyTest %7B%0A%0A  @Test%0A  public void test() throws IOException %7B%0A    JDepend jdepend = new JDepend();%0A    jdepend.addDirectory(%22target/classes%22);%0A    PackageFilter filter = jdepend.getFilter();%0A    filter.addPackage(%22java.lang%22);%0A    filter.addPackage(%22java.util%22);%0A    jdepend.analyze();%0A%0A    DependencyConstraint constraint = new DependencyConstraint();%0A    addDep(constraint, %22checkdep%22, %22checkdep.value.declaration%22);%0A    addDep(constraint, %22checkdep%22, %22checkdep.value.graph%22);%0A    addDep(constraint, %22checkdep%22, %22checkdep.value.violation%22);%0A    addDep(constraint, %22checkdep%22, %22checkdep.parse%22);%0A    addDep(constraint, %22checkdep%22, %22checkdep.graph%22);%0A    addDep(constraint, %22checkdep%22, %22checkdep.check%22);%0A    addDep(constraint, %22checkdep.parse%22, %22checkdep.value.declaration%22);%0A    addDep(constraint, %22checkdep.graph%22, %22checkdep.value.declaration%22);%0A    addDep(constraint, %22checkdep.graph%22, %22checkdep.value.graph%22);%0A    addDep(constraint, %22checkdep.check%22, %22checkdep.value.violation%22);%0A//    addDep(constraint, %22checkdep.value.declaration%22, %22java.util%22);%0A    addDep(constraint, %22checkdep.value.declaration%22, %22com.google.common.collect%22);%0A%0A    assertTrue(jdepend.dependencyMatch(constraint));%0A  %7D%0A%0A  void addDep(DependencyConstraint constraint, String from, String to) %7B%0A    constraint.addPackage(from).dependsUpon(constraint.addPackage(to));%0A  %7D%0A%7D%0A

add test PackageDependencyTest