java.lang.Object
org.kohsuke.github.ArchTests
The Class ArchTests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Before class.static com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass>
notCallMethodsInPackageUnless
(String packageIdentifier, com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaCall<?>>... unlessPredicates) Not call methods in package unless.static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaCall<?>>
targetMethodIs
(Class<?> owner, String methodName, Class<?>... parameterTypes) Target method is.void
Test require use of assert that.void
Test require use of only specific apache commons.static <T> com.tngtech.archunit.base.DescribedPredicate<T>
unless
(com.tngtech.archunit.base.DescribedPredicate<? super T> first, com.tngtech.archunit.base.DescribedPredicate<? super T> second) Unless.
-
Constructor Details
-
ArchTests
public ArchTests()Default constructor.
-
-
Method Details
-
beforeClass
public static void beforeClass()Before class. -
testRequireUseOfAssertThat
public void testRequireUseOfAssertThat()Test require use of assert that. -
testRequireUseOfOnlySpecificApacheCommons
public void testRequireUseOfOnlySpecificApacheCommons()Test require use of only specific apache commons. -
notCallMethodsInPackageUnless
public static com.tngtech.archunit.lang.ArchCondition<com.tngtech.archunit.core.domain.JavaClass> notCallMethodsInPackageUnless(String packageIdentifier, com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaCall<?>>... unlessPredicates) Not call methods in package unless.- Parameters:
packageIdentifier
- the package identifierunlessPredicates
- the unless predicates- Returns:
- the arch condition
-
targetMethodIs
public static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaCall<?>> targetMethodIs(Class<?> owner, String methodName, Class<?>... parameterTypes) Target method is.- Parameters:
owner
- the ownermethodName
- the method nameparameterTypes
- the parameter types- Returns:
- the described predicate
-
unless
public static <T> com.tngtech.archunit.base.DescribedPredicate<T> unless(com.tngtech.archunit.base.DescribedPredicate<? super T> first, com.tngtech.archunit.base.DescribedPredicate<? super T> second) Unless.- Type Parameters:
T
- the generic type- Parameters:
first
- the firstsecond
- the second- Returns:
- the described predicate
-