@Test public void testAppVersion() { Audience audience = Audience.newBuilder() .setVersionMatcher(ValueMatcher.newNumberRangeMatcher(1.0, 2.0)) .build(); when(applicationMetrics.getCurrentAppVersion()).thenReturn(1l); assertTrue(AudienceChecks.checkAudience(context, audience)); when(applicationMetrics.getCurrentAppVersion()).thenReturn(2l); assertTrue(AudienceChecks.checkAudience(context, audience)); when(applicationMetrics.getCurrentAppVersion()).thenReturn(3l); assertFalse(AudienceChecks.checkAudience(context, audience)); }
public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); }
AudienceChecks { public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); } }
AudienceChecks { public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); }  }
AudienceChecks { public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); }  static boolean checkAudience(@NonNull Context context, @Nullable Audience audience); static boolean checkAudience(@NonNull Context context, @Nullable Audience audience, @Nullable Map<String, Set<String>> tagGroups); }
AudienceChecks { public static boolean checkAudience(@NonNull Context context, @Nullable Audience audience) { return checkAudience(context, audience, null); }  static boolean checkAudience(@NonNull Context context, @Nullable Audience audience); static boolean checkAudience(@NonNull Context context, @Nullable Audience audience, @Nullable Map<String, Set<String>> tagGroups);  }