A C D E F G H I K L M O P R S T W

A

AbstractEqualContentAs< T> - Class in de.smartics.util.test.matcher.io
A matcher to check that the contents of two stream contain the identical information.
AbstractEqualContentAs(String) - Constructor for class de.smartics.util.test.matcher.io. AbstractEqualContentAs
Convenience constructor if the content is served as a String.

C

CalendarTestUtils - Class in de.smartics.util.test.util
Calendar utilities for test cases.
checkConsistentWithEquals() - Method in class de.smartics.util.test.theories. CompareToTheory
Determines whether or not the theory should check the Comparable.compareTo(Object) is consistent with Object.equals(Object).
checkForDifferentTypesInEquals() - Method in class de.smartics.util.test.theories. ObjectTheories
Determines if a theory to check that equals fails on different types should be checked.
checkForUnequalHashCodes() - Method in class de.smartics.util.test.theories. ObjectTheories
Determines if a theory to check for unequal hash code values for unequal instances should be checked.
checkThatResultEquals() - Method in class de.smartics.util.test.theories. SerializationTheory
Determines whether or not the theory should check the serialized and deserialized instance on equality with the original instance.
compareToIsConsistentToEquals(T, T) - Method in class de.smartics.util.test.theories. CompareToTheory
Checks the optional consistent to equals property of the Comparable.compareTo(Object) method.
compareToIsSymmetric(T, T) - Method in class de.smartics.util.test.theories. CompareToTheory
Checks the symmetric property of the Comparable.compareTo(Object) method.
compareToIsTransitive(T, T, T) - Method in class de.smartics.util.test.theories. CompareToTheory
Checks the transitive property of the Comparable.compareTo(Object) method.
CompareToTheory< T extends Comparable< T>> - Class in de.smartics.util.test.theories
Tests theory on comparable instances.
CompareToTheory() - Constructor for class de.smartics.util.test.theories. CompareToTheory
 
CONSTANT_DATE_1960_04_23 - Static variable in class de.smartics.util.test.util. CalendarTestUtils
A constant date that points to 1960, 13rd of April.
CONSTANT_DATE_2008_06_02 - Static variable in class de.smartics.util.test.util. CalendarTestUtils
A constant date that points to 2008, 2nd of June.
createDate(int) - Static method in class de.smartics.util.test.util. CalendarTestUtils
Creates a test date.
createDate(int, int, int) - Static method in class de.smartics.util.test.util. CalendarTestUtils
Creates a test date.
createDateInFuture(Date) - Static method in class de.smartics.util.test.util. CalendarTestUtils
Creates a date in the future of the given date.
createDateInFuture() - Static method in class de.smartics.util.test.util. CalendarTestUtils
Creates a date in the future of today.
createFromClassPath(ClassLoader, String, String, char[]) - Static method in class de.smartics.util.test.security. KeyStoreTestHelper
Creates an instance of the key store helper read from the class path.
createFromClassPath(Class<?>, String, String, char[]) - Static method in class de.smartics.util.test.security. KeyStoreTestHelper
Creates an instance of the key store helper read from the class path.
createFromClassPathRelative(Class<?>, String, String, char[]) - Static method in class de.smartics.util.test.security. KeyStoreTestHelper
Creates an instance of the key store helper read from the class path.
createFromStream(InputStream, String, char[]) - Static method in class de.smartics.util.test.security. KeyStoreTestHelper
Creates an instance of the key store helper read from the class path.
createInstanceForPrivateNoArgsConstructor(Class<?>) - Static method in class de.smartics.util.test.lang. LangTestUtils
Creates an instance of the private no-args constructor.

D

de.smartics.util.test - package de.smartics.util.test
Provides test utilities that make writing test for JUnit easier.
de.smartics.util.test.io - package de.smartics.util.test.io
Provides test utilities dealing with streams, readers/writers, files and serialization.
de.smartics.util.test.lang - package de.smartics.util.test.lang
Provides test utilities dealing with basic language constructs.
de.smartics.util.test.matcher - package de.smartics.util.test.matcher
Provides matchers for Hamcrest.
de.smartics.util.test.matcher.io - package de.smartics.util.test.matcher.io
Provides matchers dealing with IO objects.
de.smartics.util.test.properties - package de.smartics.util.test.properties
Provides dealing with properties to be used in tests.
de.smartics.util.test.security - package de.smartics.util.test.security
Provides test utilities dealing with security classes.
de.smartics.util.test.theories - package de.smartics.util.test.theories
Provides theories for JUnit.
de.smartics.util.test.util - package de.smartics.util.test.util
Provides test helpers for instances of the utils package.
DEFAULT_COUNT_CONSISTENCY_CHECK - Static variable in class de.smartics.util.test.theories. ObjectTheories
The default value for the number of iterations for the consistency check.
DEFAULT_RESOURCE - Static variable in class de.smartics.util.test.properties. ProjectProperties
The name of the properties file searched in the class path root.
DEFAULT_RUN_EQUALS_THEORY_ON_DIFFERENT_TYPES - Static variable in class de.smartics.util.test.theories. ObjectTheories
The default value to be returned by ObjectTheories.checkForDifferentTypesInEquals().
DEFAULT_RUN_HASH_CODE_THEORY_ON_UNEQUAL_INSTANCES - Static variable in class de.smartics.util.test.theories. ObjectTheories
The default value to be returned by ObjectTheories.checkForUnequalHashCodes().
describeTo(Description) - Method in class de.smartics.util.test.matcher.io. AbstractEqualContentAs

E

equalsIsConsistent(Object, Object) - Method in class de.smartics.util.test.theories. ObjectTheories
Checks the consistent property of the Object.equals(Object) method.
equalsIsReflexive(Object) - Method in class de.smartics.util.test.theories. ObjectTheories
Checks the reflexive property of the Object.equals(Object) method.
equalsIsSymmetric(Object, Object) - Method in class de.smartics.util.test.theories. ObjectTheories
Checks the symmetric property of the Object.equals(Object) method.
equalsIsTransitive(Object, Object, Object) - Method in class de.smartics.util.test.theories. ObjectTheories
Checks the transitive property of the Object.equals(Object) method.
equalsReturnFalseOnInstanceOfOtherType(Object) - Method in class de.smartics.util.test.theories. ObjectTheories
Checks the consistent property of the Object.equals(Object) method regarding comparison with elements of other type.
equalsReturnFalseOnNull(Object) - Method in class de.smartics.util.test.theories. ObjectTheories
Checks the not-null property of the Object.equals(Object) method.

F

FileTestUtils - Class in de.smartics.util.test.io
Utilities to make unit tests with files easier.

G

get(String) - Method in class de.smartics.util.test.properties. ProjectProperties
Returns the GAV string for the given key.
getActualContent() - Method in class de.smartics.util.test.matcher.io. AbstractEqualContentAs
Returns the actual content found.
getConsistencyIterationCount() - Method in class de.smartics.util.test.theories. ObjectTheories
Determines the default number of iterations to go through for the consistency checks.
getEqualsConsistencyIterationCount() - Method in class de.smartics.util.test.theories. ObjectTheories
Determines the number of iterations to go through for the equals consistency check.
getFileFromRelativeResource(Class<?>, String) - Static method in class de.smartics.util.test.io. FileTestUtils
Returns the specified file from a resource relative to the given type.
getFileFromResource(String) - Static method in class de.smartics.util.test.io. FileTestUtils
Returns the specified file from the class path.
getFileFromResource(ClassLoader, String) - Static method in class de.smartics.util.test.io. FileTestUtils
Returns the specified file from the specified class loader.
getFileFromResource(Class<?>, String) - Static method in class de.smartics.util.test.io. FileTestUtils
Returns the specified file from the class loader associated with the given type.
getHashCodeConsistencyIterationCount() - Method in class de.smartics.util.test.theories. ObjectTheories
Determines the number of iterations to go through for the hash code consistency check.
getKeyStore() - Method in class de.smartics.util.test.security. KeyStoreTestHelper
Returns the test key store.
getPropertiesFromRelativePropertiesFileForClass(Class<?>) - Static method in class de.smartics.util.test.io. FileTestUtils
Returns a properties object backed by the specified file from a resource relative to the given type with the simple name of the resource with an ending .properties .

H

hashCodeIsConsistent(Object) - Method in class de.smartics.util.test.theories. ObjectTheories
Checks the consistency property of the Object.hashCode() method.
hashCodeIsConsistentWithEquals(Object, Object) - Method in class de.smartics.util.test.theories. ObjectTheories
Checks the consistency-with-equals property of the Object.hashCode() method.
hashCodeProducesUnequalHashCodesForUnequalInstances(Object, Object) - Method in class de.smartics.util.test.theories. ObjectTheories
Checks the guideline for optimum performance of the Object.hashCode() method.

I

IoTestUtils - Class in de.smartics.util.test.io
Utilities to make unit tests with streams to resources from the class path easier.
isSerializable(Object) - Method in class de.smartics.util.test.theories. SerializationTheory
Checks that the unit under test (UUT) is serializable.

K

KeyStoreTestHelper - Class in de.smartics.util.test.security
Helper to read a key store and make its keys and certificates easily accessible.

L

LangTestUtils - Class in de.smartics.util.test.lang
Provides utility functions on the language level.

M

matchesSafely(T, Description) - Method in class de.smartics.util.test.matcher.io. AbstractEqualContentAs

O

ObjectTheories - Class in de.smartics.util.test.theories
Tests common object theories.
ObjectTheories() - Constructor for class de.smartics.util.test.theories. ObjectTheories
 
openStreamFromResource(String) - Static method in class de.smartics.util.test.io. IoTestUtils
Returns a stream to a resource on the class path loaded by the class loader of this class.
openStreamFromResource(ClassLoader, String) - Static method in class de.smartics.util.test.io. IoTestUtils
Returns a stream to a resource on the class path.
openStreamFromResource(Class<?>, String) - Static method in class de.smartics.util.test.io. IoTestUtils
Returns the specified file from a resource relative to the given type.
openStreamFromResourceByTypeClassLoader(Class<?>, String) - Static method in class de.smartics.util.test.io. IoTestUtils
Returns a stream to a resource on the class path loaded by the class loader that has loaded the given type.

P

ProjectProperties - Class in de.smartics.util.test.properties
A mapping from project-defined keys to values dependent on project properties.
ProjectProperties() - Constructor for class de.smartics.util.test.properties. ProjectProperties
Constructor using the thread's context class loader.
ProjectProperties(Class<?>) - Constructor for class de.smartics.util.test.properties. ProjectProperties
Constructor using a class to locate the .
ProjectProperties(ClassLoader) - Constructor for class de.smartics.util.test.properties. ProjectProperties
Constructor using a class loader to locate the .

R

readCertificate(String) - Method in class de.smartics.util.test.security. KeyStoreTestHelper
Reads the certificate from the key store.
readObject(byte[]) - Static method in class de.smartics.util.test.io. SerialTestUtils
Reads the object from the given byte array.
readPrivateKey(String, char[]) - Method in class de.smartics.util.test.security. KeyStoreTestHelper
Reads the private key from the key store.
ReadsEqualContentAs - Class in de.smartics.util.test.matcher.io
A matcher to check that the contents of two stream contain the identical information.
ReadsEqualContentAs(Reader) - Constructor for class de.smartics.util.test.matcher.io. ReadsEqualContentAs
Default constructor.
ReadsEqualContentAs(String) - Constructor for class de.smartics.util.test.matcher.io. ReadsEqualContentAs
Convenience constructor if the content is served as a String.
readsEqualContentAs(Reader) - Static method in class de.smartics.util.test.matcher.io. ReadsEqualContentAs
Factory method to create the matcher.
readsEqualContentAs(InputStream, String) - Static method in class de.smartics.util.test.matcher.io. ReadsEqualContentAs
Factory method to create the matcher.
readsEqualContentAs(String) - Static method in class de.smartics.util.test.matcher.io. ReadsEqualContentAs
Factory method to create the matcher.
removeAllWhitespaces(String) - Static method in class de.smartics.util.test.lang. LangTestUtils
Removes all whitespaces from the input string.
runPrivateConstructorTest(Class<?>) - Static method in class de.smartics.util.test.lang. LangTestUtils
Tests creating an instance for a private constructor.
runSerialization(T) - Static method in class de.smartics.util.test.io. SerialTestUtils
Test the serialization and deserialization of the unit under test.
runSerializationQuietly(T) - Static method in class de.smartics.util.test.io. SerialTestUtils
Runs the serialization test and signals a fail to the JUnit runtime.

S

SerializationTheory - Class in de.smartics.util.test.theories
Test theory on serializing serializable instances.
SerializationTheory() - Constructor for class de.smartics.util.test.theories. SerializationTheory
 
SerialTestUtils - Class in de.smartics.util.test.io
Provides utility functions to help on tests dealing with serialization.
StreamsEqualContentAs - Class in de.smartics.util.test.matcher.io
A matcher to check that the contents of two stream contain the identical information.
StreamsEqualContentAs(InputStream, String) - Constructor for class de.smartics.util.test.matcher.io. StreamsEqualContentAs
Default constructor.
StreamsEqualContentAs(String, String) - Constructor for class de.smartics.util.test.matcher.io. StreamsEqualContentAs
Convenience constructor if the content is served as a String.
streamsEqualContentAs(InputStream, String) - Static method in class de.smartics.util.test.matcher.io. StreamsEqualContentAs
Factory method to create the matcher.
streamsEqualContentAs(InputStream) - Static method in class de.smartics.util.test.matcher.io. StreamsEqualContentAs
Factory method to create the matcher defaulting to UTF-8.
streamsEqualContentAs(String, String) - Static method in class de.smartics.util.test.matcher.io. StreamsEqualContentAs
Factory method to create the matcher for a preconfigured String.
streamsEqualContentAs(String) - Static method in class de.smartics.util.test.matcher.io. StreamsEqualContentAs
Factory method to create the matcher for a preconfigured String with UTF-8 encoding.

T

toString(T) - Method in class de.smartics.util.test.matcher.io. AbstractEqualContentAs
Turns the instance to its string representation.
toString(Reader) - Method in class de.smartics.util.test.matcher.io. ReadsEqualContentAs
Turns the instance to its string representation.
toString(InputStream) - Method in class de.smartics.util.test.matcher.io. StreamsEqualContentAs
Turns the instance to its string representation.
toStringRunsWithoutFailure(Object) - Method in class de.smartics.util.test.theories. ObjectTheories
This theory simply checks that calling the Object.toString() method of the unit under test (UUT) does not fail with raising an exception.

W

writeObject(T, int) - Static method in class de.smartics.util.test.io. SerialTestUtils
Writes the given object to an byte array.
writeObject(T) - Static method in class de.smartics.util.test.io. SerialTestUtils
Writes the given object to an byte array.

A C D E F G H I K L M O P R S T W

Copyright © 2008-2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.