Skip to content

Commit

Permalink
GEODE-7397: remove spurious archunit clauses (apache#4480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill authored Dec 13, 2019
1 parent 5864c24 commit d9f755e
Showing 1 changed file with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,9 @@
import org.apache.geode.distributed.Locator;
import org.apache.geode.distributed.internal.LocatorStats;
import org.apache.geode.distributed.internal.membership.adapter.LocalViewMessage;
import org.apache.geode.distributed.internal.tcpserver.ConnectionWatcher;
import org.apache.geode.distributed.internal.tcpserver.TcpClient;
import org.apache.geode.internal.ClassPathLoader;
import org.apache.geode.internal.InternalDataSerializer;
import org.apache.geode.internal.OSProcess;
import org.apache.geode.internal.admin.remote.DistributionLocatorId;
import org.apache.geode.internal.net.SocketCreator;
import org.apache.geode.internal.net.SocketCreatorFactory;
import org.apache.geode.internal.security.SecurableCommunicationChannel;
Expand Down Expand Up @@ -76,7 +73,13 @@ public class MembershipDependenciesJUnitTest {
.should()
.onlyDependOnClassesThat(
resideInAPackage("org.apache.geode.distributed.internal.membership.gms..")

// OK to depend on these "leaf" dependencies
.or(resideInAPackage("org.apache.geode.internal.serialization.."))
.or(resideInAPackage("org.apache.geode.logging.internal.log4j.api.."))
.or(resideInAPackage("org.apache.geode.logging.internal.executors.."))
.or(resideInAPackage("org.apache.geode.distributed.internal.tcpserver.."))

.or(not(resideInAPackage("org.apache.geode.."))));

/*
Expand All @@ -98,6 +101,7 @@ public class MembershipDependenciesJUnitTest {
.or(resideInAPackage("org.apache.geode.internal.serialization.."))
.or(resideInAPackage("org.apache.geode.logging.internal.log4j.api.."))
.or(resideInAPackage("org.apache.geode.logging.internal.executors.."))
.or(resideInAPackage("org.apache.geode.distributed.internal.tcpserver.."))

.or(not(resideInAPackage("org.apache.geode..")))

Expand All @@ -117,18 +121,12 @@ public class MembershipDependenciesJUnitTest {
// TODO
.or(assignableTo(CancelCriterion.class))

// TODO
.or(assignableTo(ConnectionWatcher.class))

// TODO:
.or(type(SocketCreator.class))
.or(type(SocketCreatorFactory.class))

// TODO: break dependencies on locator-related classes
.or(type(Locator.class))
.or(type(TcpClient.class))
.or(type(DistributionLocatorId.class))
.or(type(NetLocator.class))

// TODO: break dependency on internal.security
.or(type(SecurableCommunicationChannel.class))
Expand All @@ -146,7 +144,5 @@ public class MembershipDependenciesJUnitTest {
.or(type(AlertingAction.class))

// TODO:
.or(type(LocalViewMessage.class))

);
.or(type(LocalViewMessage.class)));
}

0 comments on commit d9f755e

Please sign in to comment.