public static UserContact getDefaultUserContact() { UserContactType type = new UserContactType(); UserContact contact = new UserContact("value", type); contact.setOwner(ObjectsFactory.getDefaultUser()); return contact; }
public static UserContactType getDefaultUserContactType() { UserContactType type = new UserContactType(); type.setTypeName("Some type"); type.setIcon("/some/icon"); type.setMask("12345"); type.setDisplayPattern("protocol://" + UserContactType.CONTACT_MASK_PLACEHOLDER); return type; }