Class ApiTester


  • public final class ApiTester
    extends java.lang.Object
    Given a set of classes, return the lines of an API file that lists the accessible APIs.

    See `StableApiTest` for an example of usage.

    • Constructor Summary

      Constructors 
      Constructor Description
      ApiTester​(java.lang.String titleLine, java.util.Collection<com.google.common.reflect.ClassPath.ClassInfo> classes, ApiTester.Filter filter, java.lang.String errorMessage, java.net.URL expectedFileUrl, ApiTester.Flag... flag)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkApiElements()  
      void updateFile​(java.lang.String dirPath)  
      • Methods inherited from class java.lang.Object

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

      • ApiTester

        public ApiTester​(java.lang.String titleLine,
                         java.util.Collection<com.google.common.reflect.ClassPath.ClassInfo> classes,
                         @NonNull
                         ApiTester.Filter filter,
                         java.lang.String errorMessage,
                         java.net.URL expectedFileUrl,
                         ApiTester.Flag... flag)
    • Method Detail

      • checkApiElements

        public void checkApiElements()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • updateFile

        public void updateFile​(java.lang.String dirPath)
                        throws java.io.IOException
        Throws:
        java.io.IOException