Classs.
| Modifier and Type | Field and Description |
|---|---|
| private final ComparisonStrategy | |
| private final Failures | |
| private static final Classes |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | assertContainsAnnotations(AssertionInfo
contains information about the assertion. info, Class<?> the "actual" actual, Class<? extends Annotation>[] Class.annotations who must be attached to the class annotations)Verifies that the actual |
| public void | assertHasDeclaredFields(AssertionInfo
contains information about the assertion. info, Class<?> the "actual" actual, String... Class.the fields who must be declared in the class. fields)Verifies that the actual |
| public void | assertHasDeclaredMethods(AssertionInfo
contains information about the assertion. info, Class<?> the "actual" actual, String... Class.the methods who must be declared in the class. methods)Verifies that the actual |
| public void | assertHasMethods(AssertionInfo
contains information about the assertion. info, Class<?> the "actual" actual, String... Class.the methods who must be present in the class. methods)Verifies that the actual |
| public void | assertHasOnlyDeclaredFields(AssertionInfo
contains information about the assertion. info, Class<?> the "actual" actual, String... Class.all the fields that are expected to be in the class. expectedFields)Verifies that the actual |
| public void | assertHasOnlyPublicFields(AssertionInfo
contains information about the assertion. info, Class<?> the "actual" actual, String... Class.all the fields that are expected to be in the class. expectedFields)Verifies that the actual |
| public void | assertHasPublicFields(AssertionInfo
contains information about the assertion. info, Class<?> the "actual" actual, String... Class.the fields who must be present in the class. fields)Verifies that the actual |
| public void | assertHasPublicMethods(AssertionInfo
contains information about the assertion. info, Class<?> the "actual" actual, String... Class.the public methods who must be present in the class. methods)Verifies that the actual |
| public void | assertIsAssignableFrom(AssertionInfo
contains information about the assertion. info, Class<?> the "actual" actual, Class<?>... Class.the others others)Class who this actual class must be assignable.Verifies that the actual |
| private static void | |
| public void | classParameterIsNotNull(Class<?>
the class to check clazz)used to check that the class to compare is not null, in that case throws a |
| private void | doAssertHasMethods(AssertionInfo info, Class<?> actual, Set<Method> actualMethods, boolean declared, String... expectedMethods)
|
| private static Set | |
| private static <M extends Member> Set | |
| private static Method[] | |
| private static SortedSet | |
| private static boolean | |
| public static Classes | Returns: the singleton instance of this class.Returns the singleton instance of this class. |
| private static SortedSet | |
| private static Map | |
| private static boolean | Returns: true if all expectedNames are part of the actualNames, false otherwisethe names that should be used to check actualNames, Set<String> the names that should be contained in expectedNames, Set<String> actualNamesthe names that were not part of missingNames)expectedNamesChecks that the |
| private static boolean |
| comparisonStrategy | back to summary |
|---|---|
| private final ComparisonStrategy comparisonStrategy | |
| failures | back to summary |
|---|---|
| private final Failures failures | |
| INSTANCE | back to summary |
|---|---|
| private static final Classes INSTANCE | |
| Classes | back to summary |
|---|---|
| public Classes() | |
| assertContainsAnnotations | back to summary |
|---|---|
| public void assertContainsAnnotations(AssertionInfo info, Class<?> actual, Class<? extends Annotation>[] annotations) Verifies that the actual
| |
| assertHasDeclaredFields | back to summary |
|---|---|
| public void assertHasDeclaredFields(AssertionInfo info, Class<?> actual, String... fields) Verifies that the actual
| |
| assertHasDeclaredMethods | back to summary |
|---|---|
| public void assertHasDeclaredMethods(AssertionInfo info, Class<?> actual, String... methods) Verifies that the actual
| |
| assertHasMethods | back to summary |
|---|---|
| public void assertHasMethods(AssertionInfo info, Class<?> actual, String... methods) Verifies that the actual
| |
| assertHasOnlyDeclaredFields | back to summary |
|---|---|
| public void assertHasOnlyDeclaredFields(AssertionInfo info, Class<?> actual, String... expectedFields) Verifies that the actual
| |
| assertHasOnlyPublicFields | back to summary |
|---|---|
| public void assertHasOnlyPublicFields(AssertionInfo info, Class<?> actual, String... expectedFields) Verifies that the actual
| |
| assertHasPublicFields | back to summary |
|---|---|
| public void assertHasPublicFields(AssertionInfo info, Class<?> actual, String... fields) Verifies that the actual
| |
| assertHasPublicMethods | back to summary |
|---|---|
| public void assertHasPublicMethods(AssertionInfo info, Class<?> actual, String... methods) Verifies that the actual
| |
| assertIsAssignableFrom | back to summary |
|---|---|
| public void assertIsAssignableFrom(AssertionInfo info, Class<?> actual, Class<?>... others) Verifies that the actual
| |
| assertNotNull | back to summary |
|---|---|
| private static void assertNotNull(AssertionInfo info, Class<?> actual) | |
| classParameterIsNotNull | back to summary |
|---|---|
| public void classParameterIsNotNull(Class<?> clazz) used to check that the class to compare is not null, in that case throws a
| |
| doAssertHasMethods | back to summary |
|---|---|
| private void doAssertHasMethods(AssertionInfo info, Class<?> actual, Set<Method> actualMethods, boolean declared, String... expectedMethods) | |
| fieldsToName | back to summary |
|---|---|
| private static Set | |
| filterSyntheticMembers | back to summary |
|---|---|
| private static <M extends Member> Set | |
| getAllMethods | back to summary |
|---|---|
| private static Method[] getAllMethods(Class<?> actual) | |
| getMethodsWithModifier | back to summary |
|---|---|
| private static SortedSet | |
| hasPublicMethods | back to summary |
|---|---|
| private static boolean hasPublicMethods(Method[] methods) | |
| instance | back to summary |
|---|---|
| public static Classes instance() Returns the singleton instance of this class.
| |
| methodsToName | back to summary |
|---|---|
| private static SortedSet | |
| methodsToNameAndModifier | back to summary |
|---|---|
| private static Map | |
| noMissingElement | back to summary |
|---|---|
| private static boolean noMissingElement(Set<String> actualNames, Set<String> expectedNames, Set<String> missingNames) Checks that the
| |
| noNonMatchingModifier | back to summary |
|---|---|
| private static boolean noNonMatchingModifier(Set<String> expectedMethodNames, Map<String, Integer> methodsModifier, Map<String, String> nonMatchingModifiers, int modifier) | |