@Test(expected = RuntimeException.class) public void utf8NotFound() { try { HashUtils.sha256("", "Some Invalid Encoding"); } catch (RuntimeException e) { assertTrue(e.getCause() instanceof UnsupportedEncodingException); throw e; } }
@NonNull public static String sha256(@NonNull String data) { return sha256(data, "UTF-8"); }
HashUtils { @NonNull public static String sha256(@NonNull String data) { return sha256(data, "UTF-8"); } }
HashUtils { @NonNull public static String sha256(@NonNull String data) { return sha256(data, "UTF-8"); } @VisibleForTesting  HashUtils(); }
HashUtils { @NonNull public static String sha256(@NonNull String data) { return sha256(data, "UTF-8"); } @VisibleForTesting  HashUtils(); @NonNull static String sha256(@NonNull String data); }
HashUtils { @NonNull public static String sha256(@NonNull String data) { return sha256(data, "UTF-8"); } @VisibleForTesting  HashUtils(); @NonNull static String sha256(@NonNull String data);  }