use of com.kickstarter.libs.AndroidPayCapability in project android-oss by kickstarter.
the class CheckoutViewModelTest method test_AndroidPayIsAvailable_WhenNotCapable.
@Test
public void test_AndroidPayIsAvailable_WhenNotCapable() {
final Environment env = environment().toBuilder().androidPayCapability(new AndroidPayCapability(false)).build();
final CheckoutViewModel vm = new CheckoutViewModel(env);
vm.outputs.isAndroidPayAvailable().subscribe(Assert::assertFalse);
}
use of com.kickstarter.libs.AndroidPayCapability in project android-oss by kickstarter.
the class CheckoutViewModelTest method test_AndroidPayIsAvailable_WhenCapable.
@Test
public void test_AndroidPayIsAvailable_WhenCapable() {
final Environment env = environment().toBuilder().androidPayCapability(new AndroidPayCapability(true)).build();
final CheckoutViewModel vm = new CheckoutViewModel(env);
vm.outputs.isAndroidPayAvailable().subscribe(Assert::assertTrue);
}
Aggregations