TestMosaic
A test wrapper around Mosaic that provides assertion methods for testing Tile implementations.
This class is the main entry point for writing tests with Mosaic. It extends the standard Mosaic functionality with testing-specific methods and assertions.
This class should be built using TestMosaicBuilder for advanced usage.
val testMosaic = TestMosaicBuilder(testScope)
.withMockTile(DependencyTile, expectedDependency)
.build()
testMosaic.assertEquals(ResponseTile, expectedResponse)Functions
Asserts that a Tile returns the expected value.
Asserts that a MultiTile returns the expected values for the given keys.
Asserts that a Tile returns the expected value with a custom failure message.
Asserts that a MultiTile returns the expected values for the given keys with a custom failure message.
Asserts that a Tile throws the expected exception when retrieved.
Asserts that a MultiTile throws the expected exception when retrieved with the given keys.
Asserts that a Tile throws the expected exception with a custom failure message.