BVSDK { BVWorkerData getBvWorkerData() { return bvWorkerData; } BVSDK(BVUserProvidedData bvUserProvidedData, BVLogger bvLogger, BVActivityLifecycleCallbacks bvActivityLifecycleCallbacks, final BVAuthenticatedUser bvAuthenticatedUser, Handler handler, HandlerThread backgroundThread, BVPixel bvPixel, BVWorkerData bvWorkerData, BazaarEnvironment bazaarEnvironment); static BVSDK getInstance(); @MainThread void setUserAuthString(@NonNull String userAuthString); static Builder builder(Application application, String clientId); static Builder builder(Application application, BazaarEnvironment bazaarEnvironment); static Builder builderWithConfig(Application application, BazaarEnvironment bazaarEnvironment, BVConfig bvConfig);  }
@Test public void shouldCreateValidUAString() { BVSDK bvsdk = new BVSDK.Builder(ApplicationProvider.getApplicationContext(), environment, bvConfig) .build(); String userAgent = bvsdk.getBvWorkerData().getBvSdkUserAgent(); assertEquals("Mozilla/5.0 (Linux; Android "+ Build.VERSION.RELEASE +" " + Build.DEVICE+ " "+ Build.MODEL+") bvsdk-android/" + com.bazaarvoice.bvandroidsdk_analytics.BuildConfig.BVSDK_VERSION_NAME, userAgent); }