public class

PropertyAssertions

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.PropertyAssertions

Class Overview

Assertions related to iterating all the properties of one or two instances of a class.

Summary

Public Constructors
PropertyAssertions()
Public Methods
static void assertAllPropertiesEqual(String prefix, Object expected, Object actual)
Assertions.assertEquals, but without the class having to implement equals().
static void assertAllPropertiesNonDefaultValues(String prefix, Object actual)
static void assertAllPropertiesNonDefaultValues(String prefix, Object actual, Set<String> propertiesToSkip)
static boolean isArrayType(Class<?> testClass)
static void setNonDefaultValuesFor(String prefix, Object object)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PropertyAssertions ()

Public Methods

public static void assertAllPropertiesEqual (String prefix, Object expected, Object actual)

Assertions.assertEquals, but without the class having to implement equals().

Parameters
prefix the name of the property we're checking now.
expected the expected value.
actual the actual value.
Throws
InvocationTargetException
IllegalAccessException
InvocationTargetException

public static void assertAllPropertiesNonDefaultValues (String prefix, Object actual)

public static void assertAllPropertiesNonDefaultValues (String prefix, Object actual, Set<String> propertiesToSkip)

public static boolean isArrayType (Class<?> testClass)

public static void setNonDefaultValuesFor (String prefix, Object object)