Skip navigation links
A B C D E F H I L M N P R S T U W 

A

assertFinal() - Method in class io.spine.testing.ClassTest
Asserts that the class under tests is declared as final.
assertHasPrivateParameterlessCtor() - Method in class io.spine.testing.ClassTest
Asserts that the class under tests has a private constructor which accepts no parameters.
assertHasPrivateParameterlessCtor(Class<?>) - Static method in class io.spine.testing.Tests
Asserts that if the passed class has private parameter-less constructor and invokes it using Reflection.
assertIllegalArgument(Executable) - Static method in class io.spine.testing.Assertions
Asserts that running the passed executable causes IllegalArgumentException.
assertIllegalState(Executable) - Static method in class io.spine.testing.Assertions
Asserts that running the passed executable causes IllegalStateException.
assertInDelta(long, long, long) - Static method in class io.spine.testing.Tests
Asserts that the difference between expected value and actual value is not bigger than the set delta.
Assertions - Class in io.spine.testing
Convenience assertions accompanying Assertions, Truth, and Truth8.
assertLog() - Method in class io.spine.testing.logging.Interceptor
Obtains assertions for the accumulated log.
assertLog() - Method in class io.spine.testing.logging.LoggingTest
Obtains the instance of AssertingHandler of this test.
assertMatchesMask(Message, FieldMask) - Static method in class io.spine.testing.Tests
Asserts that the passed message has a field that matches the passed field mask.
assertNpe(Executable) - Static method in class io.spine.testing.Assertions
Asserts that running the passed executable cases NullPointerException.
assertThat(FluentLogger) - Static method in class io.spine.testing.logging.LogTruth
Creates a subject for the passed logger.
assertThat(LogRecord) - Static method in class io.spine.testing.logging.LogTruth
Creates a subject for the passed record.
assertThat(Level) - Static method in class io.spine.testing.logging.LogTruth
Creates a subject for the logging level.
assertThat(FluentLogger.Api) - Static method in class io.spine.testing.logging.LogTruth
Creates a subject for the logging API.
assertUnknownType(Executable) - Static method in class io.spine.testing.Assertions
Asserts that running the passed executable causes UnknownTypeException.
assertWithSubjectThat(T) - Method in class io.spine.testing.SubjectTest
Creates a subject under the test with the passed actual value.

B

build() - Method in class io.spine.testing.ReflectiveBuilder
Creates the object being built.
BUT_WAS - Static variable in class io.spine.testing.SubjectTest
 

C

ClassTest<C> - Class in io.spine.testing
Abstract base for test suites that test a class (e.g.
ClassTest(Class<C>, NullPointerTester.Visibility) - Constructor for class io.spine.testing.ClassTest
Creates a new test suite for the passed class.
ClassTest(Class<C>) - Constructor for class io.spine.testing.ClassTest
Creates a new test suite for the passed class.
configure(NullPointerTester) - Method in class io.spine.testing.ClassTest
A callback to configure a passed NullPointerTester.
constructor() - Method in class io.spine.testing.ReflectiveBuilder
Obtains constructor for the result object.
Correspondences - Class in io.spine.testing
A factory of Correspondences for constructing fluent assertions for collection elements.

D

DisplayNames - Class in io.spine.testing
A storage for the common JUnit 5 test display names.

E

EXPECTED - Static variable in class io.spine.testing.SubjectTest
 
EXPECTED_NOT_TO_BE - Static variable in class io.spine.testing.SubjectTest
 
expectFailure(ExpectFailure.SimpleSubjectBuilderCallback<S, T>) - Method in class io.spine.testing.SubjectTest
Creates an AssertionError caused by the passed callback.
expectSomeFailure(ExpectFailure.SimpleSubjectBuilderCallback<S, T>) - Method in class io.spine.testing.SubjectTest
Expects that the passed callback causes AssertionError and ignores it.

F

forClass(Class<?>, FileAttribute<?>...) - Static method in class io.spine.testing.TempDir
Creates a temporary directory for the passed test suite class.

H

halt() - Static method in class io.spine.testing.Tests
Reports that a calling method should never be called by throwing AssertionError.
hasClassNameThat() - Method in class io.spine.testing.logging.LogRecordSubject
Obtains a subject for asserting the source class name associated with the log record.
hasLevelThat() - Method in class io.spine.testing.logging.LogRecordSubject
Obtains a subject for the logging level.
hasMessageThat() - Method in class io.spine.testing.logging.LogRecordSubject
Returns a StringSubject to make assertions about the log record message.
hasMethodNameThat() - Method in class io.spine.testing.logging.LogRecordSubject
Obtains a subject for asserting the source method name associated with the log record.
hasParametersThat() - Method in class io.spine.testing.logging.LogRecordSubject
Obtains a subject for the logging event arguments.
hasThrowableThat() - Method in class io.spine.testing.logging.LogRecordSubject
Obtains a subject for asserting Throwable associated with the log record.
HAVE_PARAMETERLESS_CTOR - Static variable in class io.spine.testing.DisplayNames
A name for the test cases checking that a class has private parameterless (aka "utility") constructor.

I

intercept() - Method in class io.spine.testing.logging.Interceptor
Installs the handler for intercepting the records.
interceptLogging() - Method in class io.spine.testing.logging.LoggingTest
Redirects logging to a custom handler which would accumulate the log output.
Interceptor - Class in io.spine.testing.logging
Intercepts logging records of the associated class.
Interceptor(Class<?>, Level) - Constructor for class io.spine.testing.logging.Interceptor
Creates a new instance for intercepting logging of the passed class at the specified minimum level.
io.spine.testing - package io.spine.testing
Utility classes for framework testing.
io.spine.testing.logging - package io.spine.testing.logging
This package provides Truth-based classes for testing logging.
isDebug() - Method in class io.spine.testing.logging.LogRecordSubject
Asserts that the level of the record is Level.FINE.
isEmpty() - Method in interface io.spine.testing.logging.LoggingAssertions
Asserts that there were no log messages.
isError() - Method in class io.spine.testing.logging.LogRecordSubject
Asserts that the level of the record is Level.SEVERE.

L

level() - Method in class io.spine.testing.logging.Interceptor
Obtains the level of logging assigned for the tests.
level() - Method in class io.spine.testing.logging.LoggingTest
Obtains the level of logging assigned for the tests.
LoggingAssertions - Interface in io.spine.testing.logging
Interface for asserting intercepted logging output.
loggingClass() - Method in class io.spine.testing.logging.Interceptor
Obtains the class which logging operations are tested.
loggingClass() - Method in class io.spine.testing.logging.LoggingTest
Obtains the class which logging operations are tested.
LoggingTest - Class in io.spine.testing.logging
Abstract base for tests of logging.
LoggingTest(Class<?>, Level) - Constructor for class io.spine.testing.logging.LoggingTest
Creates a new test suite.
LogRecordSubject - Class in io.spine.testing.logging
Propositions for LogRecord subjects.
LogTruth - Class in io.spine.testing.logging
A set of static methods to begin a Truth assertion chain for logging types.
longRandom(long, long) - Static method in class io.spine.testing.TestValues
Generates a random long value in the range [min, max).

M

minimalStaticMethodVisibility() - Method in class io.spine.testing.ClassTest
Obtains the minimal level of visibility of static methods included into null-pointer testing of parameters.

N

newUuidValue() - Static method in class io.spine.testing.TestValues
Generates a StringValue with generated UUID.
NOT_ACCEPT_NULLS - Static variable in class io.spine.testing.DisplayNames
A name for the test cases checking that class methods do not accept null for their non-nullable arguments.
NULL - Static variable in class io.spine.testing.SubjectTest
 
nullRef() - Static method in class io.spine.testing.Tests
Returns null.

P

previousLevel() - Method in class io.spine.testing.logging.Interceptor
Obtains the level of the logging set for the logging class before the tests.
previousLevel() - Method in class io.spine.testing.logging.LoggingTest
Obtains the level of the logging set for the logging class before the tests.

R

random(int) - Static method in class io.spine.testing.TestValues
Generates a random integer in the range [0, max).
random(int, int) - Static method in class io.spine.testing.TestValues
Generates a random integer in the range [min, max).
randomString() - Static method in class io.spine.testing.TestValues
Generates a string value based on generated UUID.
record() - Method in interface io.spine.testing.logging.LoggingAssertions
Obtains the subject for the only log record placed to the log.
ReflectiveBuilder<T> - Class in io.spine.testing
The abstract base for test object builders.
ReflectiveBuilder() - Constructor for class io.spine.testing.ReflectiveBuilder
Constructor for use by subclasses.
release() - Method in class io.spine.testing.logging.Interceptor
Returns the logger configuration to the previous state.
repeat(int, Runnable) - Static method in class io.spine.testing.Tests
Repeats the passed action the count number of times.
restoreLogging() - Method in class io.spine.testing.logging.LoggingTest
Removes the handler assigned in LoggingTest.interceptLogging() and restores the value of the flag for using parent handlers.
resultClass() - Method in class io.spine.testing.ReflectiveBuilder
Obtains the class of the object to build.

S

setResultClass(Class<T>) - Method in class io.spine.testing.ReflectiveBuilder
Sets the class of the object to build.
SimpleLoggingTest - Class in io.spine.testing.logging
Abstract base for logging tests that can setup and clean the logging fixture via annotated methods.
SimpleLoggingTest(Class<?>, Level) - Constructor for class io.spine.testing.logging.SimpleLoggingTest
Creates new test suite.
SingletonTest<S> - Class in io.spine.testing
Abstract base for testing classes that implement a singleton pattern.
SingletonTest(Class<S>, NullPointerTester.Visibility, Supplier<S>) - Constructor for class io.spine.testing.SingletonTest
Creates new test suite.
SingletonTest(Class<S>, Supplier<S>) - Constructor for class io.spine.testing.SingletonTest
Creates new test suite.
SlowTest - Annotation Type in io.spine.testing
Marks tests which are known to be slow and should not normally be run together with the main test suite.
subject() - Method in class io.spine.testing.ClassTest
Obtains the class under tests.
subjectFactory() - Method in class io.spine.testing.SubjectTest
 
SubjectTest<S extends com.google.common.truth.Subject,T> - Class in io.spine.testing
An abstract base for custom Subject test suites.
SubjectTest() - Constructor for class io.spine.testing.SubjectTest
 

T

TAG - Static variable in annotation type io.spine.testing.SlowTest
 
TempDir - Class in io.spine.testing
Utilities for creating temporary directories.
Tests - Class in io.spine.testing
Utilities for testing.
TestValues - Class in io.spine.testing
Utility factories for test values.
textOutput() - Method in interface io.spine.testing.logging.LoggingAssertions
Obtains the subject for asserting text output of the first log record.
type() - Static method in class io.spine.testing.Correspondences
Obtains a Correspondence of an object to its type.

U

UtilityClassTest<C> - Class in io.spine.testing
Abstract base for test suites testing utility classes.
UtilityClassTest(Class<C>, NullPointerTester.Visibility) - Constructor for class io.spine.testing.UtilityClassTest
Creates new test suite.
UtilityClassTest(Class<C>) - Constructor for class io.spine.testing.UtilityClassTest
Creates a new test suite for the passed class.

W

withPrefix(String, FileAttribute<?>...) - Static method in class io.spine.testing.TempDir
Creates a temporary directory.
A B C D E F H I L M N P R S T U W 
Skip navigation links