Package guru.zoroark.tegral.di.test
Contains the test utilities.
Types
Error thrown when a feature that does not exist in controlled test environments (e.g. environments internally used by tegralDiCheck checks) is accessed. If you did not initiate the missing feature yourself:
Abstract class for tests that aim to test a "subject". This means tests that are based around testing features from a single component, with additional supporting modules/components added to the mix.
Common base class for tests that use Tegral DI. This is mostly here to set the basic syntax of tests.
Base class for testing Tegral DI-applications.
Interface for common utilities in test Tegral DI environments, such as UnsafeMutableEnvironment. This is mostly intended to ease writing interfaces that combine further DSLs into a single interface (such as ControllerTestContext
from Tegral Web Controllers).
A fully mutable extensible environment implementation with very little safety.
Functions
Creates an entry directly from a declaration instead of from a qualifier + supplier.
Creates a Declaration, automatically creating the identifier from T and qualifier and using the given supplier. Returns a pair with the identifier and the declaration.