Description
Add BundleResolver to generate random android.os.Bundle instances in the :android module under dev.appoutlet.some.android.resolver.
-
Scope and constraints
BundleResolver creates a Bundle() and populates it with random entries using putString, putInt, putLong, putFloat, putDouble, putBoolean.
- Entry count is random (0–5 entries).
- Keys are random generated strings.
- Value types are mixed randomly from the available primitives and String.
- The constructor receives
random: Random only (no strategy needed).
canResolve() uses exact type matching: type == typeOf<Bundle>().
- Includes JVM unit tests verifying entry count, bundle non-nullity, non-empty keys, and
canResolve behavior.
- Follows the same patterns as simple resolvers from
:core.
-
References
Scope
In scope: BundleResolver, JVM unit tests.
Out of scope: registering the resolver in AndroidTypeResolverProvider (ticket #14).
Acceptance criteria
Description
Add
BundleResolverto generate randomandroid.os.Bundleinstances in the:androidmodule underdev.appoutlet.some.android.resolver.Scope and constraints
BundleResolvercreates aBundle()and populates it with random entries usingputString,putInt,putLong,putFloat,putDouble,putBoolean.random: Randomonly (no strategy needed).canResolve()uses exact type matching:type == typeOf<Bundle>().canResolvebehavior.:core.References
Scope
In scope:
BundleResolver, JVM unit tests.Out of scope: registering the resolver in
AndroidTypeResolverProvider(ticket #14).Acceptance criteria
BundleResolver.canResolve(typeOf<Bundle>())returns trueBundleResolver.canResolve(typeOf<String>())returns falseandroid.jarand run as plain JVM unit tests