@Test public void testIsUsUserViewingNonUsProject() { assertTrue(ProjectUtils.isUSUserViewingNonUSProject( UserFactory.user().location().country(), ProjectFactory.ukProject().country()) ); assertFalse(ProjectUtils.isUSUserViewingNonUSProject( UserFactory.user().location().country(), ProjectFactory.project().country()) ); assertFalse(ProjectUtils.isUSUserViewingNonUSProject( UserFactory.germanUser().location().country(), ProjectFactory.caProject().country()) ); }
public static boolean isUSUserViewingNonUSProject(final @NonNull String userCountry, final @NonNull String projectCountry) { return I18nUtils.isCountryUS(userCountry) && !I18nUtils.isCountryUS(projectCountry); }
ProjectUtils { public static boolean isUSUserViewingNonUSProject(final @NonNull String userCountry, final @NonNull String projectCountry) { return I18nUtils.isCountryUS(userCountry) && !I18nUtils.isCountryUS(projectCountry); } }
ProjectUtils { public static boolean isUSUserViewingNonUSProject(final @NonNull String userCountry, final @NonNull String projectCountry) { return I18nUtils.isCountryUS(userCountry) && !I18nUtils.isCountryUS(projectCountry); } private  ProjectUtils(); }
ProjectUtils { public static boolean isUSUserViewingNonUSProject(final @NonNull String userCountry, final @NonNull String projectCountry) { return I18nUtils.isCountryUS(userCountry) && !I18nUtils.isCountryUS(projectCountry); } private  ProjectUtils(); static boolean acceptedCardType(final @NonNull CreditCardTypes type, final @NonNull Project project); static List<Pair<Project, DiscoveryParams>> combineProjectsAndParams(final @NonNull List<Project> projects, final @NonNull DiscoveryParams params); static @NonNull String deadlineCountdown(final @NonNull Project project, final @NonNull Context context); static @NonNull String deadlineCountdownDetail(final @NonNull Project project, final @NonNull Context context,
    final @NonNull KSString ksString); static @NonNull String deadlineCountdownUnit(final @NonNull Project project, final @NonNull Context context); static int deadlineCountdownValue(final @NonNull Project project); static boolean isCompleted(final @NonNull Project project); static boolean isProjectNamePunctuated(final @NonNull String name); static @Nullable Metadata metadataForProject(final @NonNull Project project); static int photoHeightFromWidthRatio(final int width); static @NonNull Long timeInSecondsOfDuration(final @NonNull Project project); static @NonNull Long timeInSecondsUntilDeadline(final @NonNull Project project); static boolean userIsCreator(final @NonNull Project project, final @Nullable User user); static boolean isUSUserViewingNonUSProject(final @NonNull String userCountry, final @NonNull String projectCountry); }
ProjectUtils { public static boolean isUSUserViewingNonUSProject(final @NonNull String userCountry, final @NonNull String projectCountry) { return I18nUtils.isCountryUS(userCountry) && !I18nUtils.isCountryUS(projectCountry); } private  ProjectUtils(); static boolean acceptedCardType(final @NonNull CreditCardTypes type, final @NonNull Project project); static List<Pair<Project, DiscoveryParams>> combineProjectsAndParams(final @NonNull List<Project> projects, final @NonNull DiscoveryParams params); static @NonNull String deadlineCountdown(final @NonNull Project project, final @NonNull Context context); static @NonNull String deadlineCountdownDetail(final @NonNull Project project, final @NonNull Context context,
    final @NonNull KSString ksString); static @NonNull String deadlineCountdownUnit(final @NonNull Project project, final @NonNull Context context); static int deadlineCountdownValue(final @NonNull Project project); static boolean isCompleted(final @NonNull Project project); static boolean isProjectNamePunctuated(final @NonNull String name); static @Nullable Metadata metadataForProject(final @NonNull Project project); static int photoHeightFromWidthRatio(final int width); static @NonNull Long timeInSecondsOfDuration(final @NonNull Project project); static @NonNull Long timeInSecondsUntilDeadline(final @NonNull Project project); static boolean userIsCreator(final @NonNull Project project, final @Nullable User user); static boolean isUSUserViewingNonUSProject(final @NonNull String userCountry, final @NonNull String projectCountry);  }