@Test public void can_extract_uuid_from_bad_decrypted_member() { DecryptedMember decryptedMember = DecryptedMember.newBuilder() .setUuid(ByteString.copyFrom(new byte[0])) .build(); UUID parsed = DecryptedGroupUtil.toUuid(decryptedMember); assertEquals(UuidUtil.UNKNOWN_UUID, parsed); }
public static UUID toUuid(DecryptedMember member) { return toUuid(member.getUuid()); }
DecryptedGroupUtil { public static UUID toUuid(DecryptedMember member) { return toUuid(member.getUuid()); } }
DecryptedGroupUtil { public static UUID toUuid(DecryptedMember member) { return toUuid(member.getUuid()); }  }
DecryptedGroupUtil { public static UUID toUuid(DecryptedMember member) { return toUuid(member.getUuid()); }  static ArrayList<UUID> toUuidList(Collection<DecryptedMember> membersList); static ArrayList<UUID> membersToUuidList(Collection<DecryptedMember> membersList); static Set<ByteString> membersToUuidByteStringSet(Collection<DecryptedMember> membersList); static ArrayList<UUID> pendingToUuidList(Collection<DecryptedPendingMember> membersList); static ArrayList<UUID> removedMembersUuidList(DecryptedGroupChange groupChange); static ArrayList<UUID> removedPendingMembersUuidList(DecryptedGroupChange groupChange); static ArrayList<UUID> removedRequestingMembersUuidList(DecryptedGroupChange groupChange); static UUID toUuid(DecryptedMember member); static UUID toUuid(DecryptedPendingMember member); static Optional<UUID> editorUuid(DecryptedGroupChange change); static Optional<DecryptedMember> findMemberByUuid(Collection<DecryptedMember> members, UUID uuid); static Optional<DecryptedPendingMember> findPendingByUuid(Collection<DecryptedPendingMember> members, UUID uuid); static Optional<DecryptedRequestingMember> findRequestingByUuid(Collection<DecryptedRequestingMember> members, UUID uuid); static boolean isPendingOrRequesting(DecryptedGroup group, UUID uuid); static DecryptedGroup removeMember(DecryptedGroup group, UUID uuid, int revision); static DecryptedGroup apply(DecryptedGroup group, DecryptedGroupChange change); static DecryptedGroup applyWithoutRevisionCheck(DecryptedGroup group, DecryptedGroupChange change); static Optional<UUID> findInviter(List<DecryptedPendingMember> pendingMembersList, UUID uuid); static boolean changeIsEmpty(DecryptedGroupChange change); static boolean changeIsEmptyExceptForProfileKeyChanges(DecryptedGroupChange change); }
DecryptedGroupUtil { public static UUID toUuid(DecryptedMember member) { return toUuid(member.getUuid()); }  static ArrayList<UUID> toUuidList(Collection<DecryptedMember> membersList); static ArrayList<UUID> membersToUuidList(Collection<DecryptedMember> membersList); static Set<ByteString> membersToUuidByteStringSet(Collection<DecryptedMember> membersList); static ArrayList<UUID> pendingToUuidList(Collection<DecryptedPendingMember> membersList); static ArrayList<UUID> removedMembersUuidList(DecryptedGroupChange groupChange); static ArrayList<UUID> removedPendingMembersUuidList(DecryptedGroupChange groupChange); static ArrayList<UUID> removedRequestingMembersUuidList(DecryptedGroupChange groupChange); static UUID toUuid(DecryptedMember member); static UUID toUuid(DecryptedPendingMember member); static Optional<UUID> editorUuid(DecryptedGroupChange change); static Optional<DecryptedMember> findMemberByUuid(Collection<DecryptedMember> members, UUID uuid); static Optional<DecryptedPendingMember> findPendingByUuid(Collection<DecryptedPendingMember> members, UUID uuid); static Optional<DecryptedRequestingMember> findRequestingByUuid(Collection<DecryptedRequestingMember> members, UUID uuid); static boolean isPendingOrRequesting(DecryptedGroup group, UUID uuid); static DecryptedGroup removeMember(DecryptedGroup group, UUID uuid, int revision); static DecryptedGroup apply(DecryptedGroup group, DecryptedGroupChange change); static DecryptedGroup applyWithoutRevisionCheck(DecryptedGroup group, DecryptedGroupChange change); static Optional<UUID> findInviter(List<DecryptedPendingMember> pendingMembersList, UUID uuid); static boolean changeIsEmpty(DecryptedGroupChange change); static boolean changeIsEmptyExceptForProfileKeyChanges(DecryptedGroupChange change);  }