WizardUtils { @Nullable public static String validatePackageName(@Nullable String packageName) { packageName = (packageName == null) ? "" : packageName; if (packageName.length() >= PACKAGE_LENGTH_LIMIT) { return AndroidBundle.message("android.wizard.module.package.too.long"); } return AndroidUtils.validateAndroidPackageName(packageName); }  @NotNull static File getProjectLocationParent(); @Nullable static String validatePackageName(@Nullable String packageName); @NotNull static String toHtmlString(@NotNull String text); @NotNull static URL toUrl(@NotNull String urlAsString); static String getUniqueName(String initialValue, Validator<String> validator); static boolean hasComposeMinAgpVersion(@Nullable Project project, @Nullable String templateCategory); static final String COMPOSE_MIN_AGP_VERSION; }
@Test public void validatePackageNameWithNullPackage() { assertThat(validatePackageName(null)).isEqualTo("Package name is missing"); }
@Test public void validatePackageNameWithLongPackage() { assertThat(validatePackageName(repeat("A", 200))).isEqualTo("Package name is too long"); }