Class ClassSubject

java.lang.Object
com.google.common.truth.Subject<ClassSubject,Class<?>>
com.google.common.truth.ClassSubject

public class ClassSubject extends Subject<ClassSubject,Class<?>>
Propositions for Class subjects.
  • Constructor Details

  • Method Details

    • isAssignableFrom

      @GwtIncompatible("isAssignableFrom") public void isAssignableFrom(Class<?> clazz)
      Fails if this class or interface is not the same as or a superclass or superinterface of the given class or interface.
    • isAssignableTo

      @GwtIncompatible("isAssignableFrom") public void isAssignableTo(Class<?> clazz)
      Fails if this class or interface is not the same as or a subclass or subinterface of, the given class or interface.
    • declaresField

      @GwtIncompatible("Reflection") public void declaresField(String fieldName)