Class ArchTests

java.lang.Object
org.kohsuke.github.ArchTests

public class ArchTests extends Object
The Class ArchTests.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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 api stability.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ArchTests

      public ArchTests()
  • Method Details

    • beforeClass

      public static void beforeClass()
      Before class.
    • testRequireUseOfAssertThat

      public void testRequireUseOfAssertThat()
      Test require use of assert that.
    • testApiStability

      public void testApiStability()
      Test api stability.
    • 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 identifier
      unlessPredicates - 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 owner
      methodName - the method name
      parameterTypes - 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 first
      second - the second
      Returns:
      the described predicate