Package com.tomtom.ivi.platform.tools.api.testing.testapplication

Types

Hosts all mocked IVI services.

Link copied to clipboard
sealed class IviServiceMockIdentifier<M : AnyIviServiceBase>

Identifies an IVI service mock instance.

Link copied to clipboard
class IviServiceRule(testLifecycleOwner: TestLifecycleOwner, initialIviServiceTestConfiguration: IviServiceTestConfiguration? = null) : ExternalResource

Rule to setup the initialIviServiceTestConfiguration before starting the test.

Link copied to clipboard
abstract class IviServiceTestCase(initialIviServiceTestConfiguration: IviServiceTestConfiguration? = DEFAULT_INITIAL_SERVICE_CONFIG) : IviFunctionalTestCase, IviServiceAwareTestCase

Base class for running tests that require one or more IVI services.

Link copied to clipboard
data class IviServiceTestConfiguration(    val additionalRuntimeDeploymentIds: List<RuntimeDeploymentId> = emptyList(),     val iviServiceMocks: ServiceMocksMap = emptyMap(),     val iviInstanceIds: List<IviInstanceId> = listOf( IviFunctionalTestCase.defaultIviInstanceId ))

Represents the IVI service configuration to use during a test.

abstract class IviWebServiceMockDependentIviServiceTestCase(initialIviServiceTestConfiguration: IviServiceTestConfiguration? = DEFAULT_INITIAL_SERVICE_CONFIG) : IviServiceTestCase

An integration test case which depends on WebserviceMockRule.

Link copied to clipboard
Link copied to clipboard
open class TestApplication : IviApplication

A TestApplication designed to allow tests to control the IVI service configuration by extending it and/or by using the IviServiceRule.

Functions

Link copied to clipboard
fun TraceEventErrorsListener.Companion.expectServiceFunException(    iviServiceId: IviServiceId,     functionReference: KFunction<*>,     exceptionMessage: String)

Whitelists trace event errors as result of throwing an exception in an IVI service function.