@Test(expected = IllegalArgumentException.class) public void testGetUuidFromAccountUrn_BlankStringl() throws Exception { UuidUtil.getUuidFromAccountUrn(" "); }
@Deprecated public static UUID getUuidFromAccountUrn(final String urn) { if (StringUtils.isNotBlank(urn)&& urn.startsWith(URN_PREFIX_ACCOUNT)) { return UUID.fromString(StringUtils.substringAfterLast(urn, URN_SEPARATOR)); } throw new IllegalArgumentException(String.format("Invalid URN: %s", urn)); }
UuidUtil { @Deprecated public static UUID getUuidFromAccountUrn(final String urn) { if (StringUtils.isNotBlank(urn)&& urn.startsWith(URN_PREFIX_ACCOUNT)) { return UUID.fromString(StringUtils.substringAfterLast(urn, URN_SEPARATOR)); } throw new IllegalArgumentException(String.format("Invalid URN: %s", urn)); } }
UuidUtil { @Deprecated public static UUID getUuidFromAccountUrn(final String urn) { if (StringUtils.isNotBlank(urn)&& urn.startsWith(URN_PREFIX_ACCOUNT)) { return UUID.fromString(StringUtils.substringAfterLast(urn, URN_SEPARATOR)); } throw new IllegalArgumentException(String.format("Invalid URN: %s", urn)); }  }
UuidUtil { @Deprecated public static UUID getUuidFromAccountUrn(final String urn) { if (StringUtils.isNotBlank(urn)&& urn.startsWith(URN_PREFIX_ACCOUNT)) { return UUID.fromString(StringUtils.substringAfterLast(urn, URN_SEPARATOR)); } throw new IllegalArgumentException(String.format("Invalid URN: %s", urn)); }  @Deprecated static UUID getUuidFromUrn(final String urn); @Deprecated static String getUrnFromUuid(final UUID referenceUuid); @Deprecated static UUID getUuidFromAccountUrn(final String urn); @Deprecated static String getAccountUrnFromUuid(final UUID referenceUuid); @Deprecated static UUID getNewUuid(); @Deprecated static String getNewUuidAsString(); }
UuidUtil { @Deprecated public static UUID getUuidFromAccountUrn(final String urn) { if (StringUtils.isNotBlank(urn)&& urn.startsWith(URN_PREFIX_ACCOUNT)) { return UUID.fromString(StringUtils.substringAfterLast(urn, URN_SEPARATOR)); } throw new IllegalArgumentException(String.format("Invalid URN: %s", urn)); }  @Deprecated static UUID getUuidFromUrn(final String urn); @Deprecated static String getUrnFromUuid(final UUID referenceUuid); @Deprecated static UUID getUuidFromAccountUrn(final String urn); @Deprecated static String getAccountUrnFromUuid(final UUID referenceUuid); @Deprecated static UUID getNewUuid(); @Deprecated static String getNewUuidAsString(); static final String URN_SEPARATOR; static final String URN_PREFIX; static final String URN_PREFIX_ACCOUNT; static final String URN_PREFIX_UUID; }