@Test public void testMemoHashTooLong() { byte[] longer = new byte[33]; Arrays.fill(longer, (byte) 0); try { Memo.hash(longer); fail(); } catch (MemoTooLongException exception) { assertTrue(exception.getMessage().contains("MEMO_HASH can contain 32 bytes at max.")); } }
public static MemoHash hash(byte[] bytes) { return new MemoHash(bytes); }
Memo { public static MemoHash hash(byte[] bytes) { return new MemoHash(bytes); } }
Memo { public static MemoHash hash(byte[] bytes) { return new MemoHash(bytes); }  }
Memo { public static MemoHash hash(byte[] bytes) { return new MemoHash(bytes); }  static MemoNone none(); static MemoText text(String text); static MemoId id(long id); static MemoHash hash(byte[] bytes); static MemoHash hash(String hexString); static MemoReturnHash returnHash(byte[] bytes); static MemoReturnHash returnHash(String hexString); static Memo fromXdr(kin.base.xdr.Memo memo); abstract boolean equals(Object o); }
Memo { public static MemoHash hash(byte[] bytes) { return new MemoHash(bytes); }  static MemoNone none(); static MemoText text(String text); static MemoId id(long id); static MemoHash hash(byte[] bytes); static MemoHash hash(String hexString); static MemoReturnHash returnHash(byte[] bytes); static MemoReturnHash returnHash(String hexString); static Memo fromXdr(kin.base.xdr.Memo memo); abstract boolean equals(Object o);  }