ULinkTestingUtilities class

Testing utilities for the ULink Bridge SDK.

This class provides helper methods and utilities for testing ULink functionality in your Flutter applications.

Available extensions

Constructors

ULinkTestingUtilities()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

debugMode bool
Whether debug mode is enabled for testing utilities.
getter/setter pair

Static Methods

createMockConfig({String apiKey = 'test-api-key', String baseUrl = 'https://api.test.com', bool debug = true, bool persistLastLinkData = false, Duration? lastLinkTimeToLive, bool clearLastLinkOnRead = true, bool redactAllParametersInLastLink = false, List<String> redactedParameterKeysInLastLink = const [], bool enableDeepLinkIntegration = true, bool enableAnalytics = false, bool enableCrashReporting = false, int timeout = 5000, int retryCount = 1, Map<String, dynamic>? metadata}) ULinkConfig
Creates a mock ULinkConfig for testing
createMockParameters({String type = 'dynamic', String domain = 'test.com', String? slug = 'test-slug', String? iosUrl, String? androidUrl, String? iosFallbackUrl = 'https://apps.apple.com/app/test', String? androidFallbackUrl = 'https://play.google.com/store/apps/details?id=com.test', String? fallbackUrl = 'https://test.com', Map<String, dynamic>? parameters = const {'param1' : 'value1'}, SocialMediaTags? socialMediaTags, Map<String, dynamic>? metadata}) ULinkParameters
Creates a mock ULinkParameters for testing
createMockResolvedData({String? slug = 'test-slug', String? iosFallbackUrl = 'https://apps.apple.com/app/test', String? androidFallbackUrl = 'https://play.google.com/store/apps/details?id=com.test', String? fallbackUrl = 'https://test.com', Map<String, dynamic>? parameters = const {'param1' : 'value1'}, SocialMediaTags? socialMediaTags, Map<String, dynamic>? metadata = const {'meta1' : 'value1'}, ULinkType linkType = ULinkType.dynamic, Map<String, dynamic>? rawData}) ULinkResolvedData
Creates a mock ULinkResolvedData for testing
createMockSocialMediaTags({String? ogTitle = 'Test Title', String? ogDescription = 'Test Description', String? ogImage = 'https://test.com/image.jpg'}) SocialMediaTags
Creates a mock SocialMediaTags for testing
createTestSession({Map<String, dynamic>? metadata}) Future<String?>
Creates a test session for testing session-related functionality.
Simulates a deep link event for testing.
testLinkListener(String testUrl) Future<bool>
Tests the link listener functionality.
validateConfig(ULinkConfig config) bool
Validates a ULinkConfig object.
validateParameters(ULinkParameters parameters) bool
Validates ULinkParameters object.
waitForSessionState(SessionState targetState, {int timeoutSeconds = 30}) Future<bool>
Waits for a session to reach a specific state.